Autocrafting table got proper orientation. Closes #2419
This commit is contained in:
parent
729b645cd7
commit
15b354fd65
2 changed files with 4 additions and 10 deletions
|
@ -37,7 +37,6 @@ import net.minecraft.screen.ScreenHandler;
|
||||||
import net.minecraft.sound.SoundCategory;
|
import net.minecraft.sound.SoundCategory;
|
||||||
import net.minecraft.util.collection.DefaultedList;
|
import net.minecraft.util.collection.DefaultedList;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.math.Direction;
|
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import org.apache.commons.lang3.tuple.Pair;
|
import org.apache.commons.lang3.tuple.Pair;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
@ -351,7 +350,7 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
|
||||||
return Optional.of(getCraftingInventory());
|
return Optional.of(getCraftingInventory());
|
||||||
}
|
}
|
||||||
|
|
||||||
// TilePowerAcceptor
|
// PowerAcceptorBlockEntity
|
||||||
@Override
|
@Override
|
||||||
public void tick(World world, BlockPos pos, BlockState state, MachineBaseBlockEntity blockEntity) {
|
public void tick(World world, BlockPos pos, BlockState state, MachineBaseBlockEntity blockEntity) {
|
||||||
super.tick(world, pos, state, blockEntity);
|
super.tick(world, pos, state, blockEntity);
|
||||||
|
@ -432,12 +431,6 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This machine doesnt have a facing
|
|
||||||
@Override
|
|
||||||
public Direction getFacingEnum() {
|
|
||||||
return Direction.NORTH;
|
|
||||||
}
|
|
||||||
|
|
||||||
// IToolDrop
|
// IToolDrop
|
||||||
@Override
|
@Override
|
||||||
public ItemStack getToolDrop(PlayerEntity playerIn) {
|
public ItemStack getToolDrop(PlayerEntity playerIn) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{
|
{
|
||||||
"parent": "minecraft:block/cube_bottom_top",
|
"parent": "minecraft:block/orientable",
|
||||||
"textures": {
|
"textures": {
|
||||||
"top": "techreborn:block/machines/tier1_machines/auto_crafting_table_top",
|
"top": "techreborn:block/machines/tier1_machines/auto_crafting_table_top",
|
||||||
|
"front": "techreborn:block/machines/tier1_machines/auto_crafting_table_side",
|
||||||
"bottom": "techreborn:block/machines/tier1_machines/machine_bottom",
|
"bottom": "techreborn:block/machines/tier1_machines/machine_bottom",
|
||||||
"side": "techreborn:block/machines/tier1_machines/auto_crafting_table_side"
|
"side": "techreborn:block/machines/tier1_machines/machine_side"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue