Remove useless method, fix 2 textures
This commit is contained in:
@@ -56,6 +56,10 @@ public abstract class BlockBase extends Block {
|
||||
return createBlockStateBuilder().build();
|
||||
}
|
||||
|
||||
public Item createItemForBlock() {
|
||||
return new ItemBlockBase(this, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return getDefaultState();
|
||||
@@ -111,7 +115,7 @@ public abstract class BlockBase extends Block {
|
||||
if (tile instanceof TileBase) {
|
||||
EnumFacing facing = getDirectionType().getFrom(pos, player);
|
||||
|
||||
if (player.isSneaking() && canBePlacedOpposite()) {
|
||||
if (player.isSneaking() && getDirectionType() == EnumDirectionType.ANY) {
|
||||
facing = facing.getOpposite();
|
||||
}
|
||||
|
||||
@@ -149,14 +153,6 @@ public abstract class BlockBase extends Block {
|
||||
world.setBlockToAir(pos);
|
||||
}
|
||||
|
||||
public Item createItemForBlock() {
|
||||
return new ItemBlockBase(this, false);
|
||||
}
|
||||
|
||||
public boolean canBePlacedOpposite() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public EnumDirectionType getDirectionType() {
|
||||
return EnumDirectionType.HORIZONTAL;
|
||||
}
|
||||
|
||||
@@ -31,11 +31,6 @@ public class BlockConstructor extends BlockNode {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBePlacedOpposite() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumDirectionType getDirectionType() {
|
||||
return EnumDirectionType.ANY;
|
||||
|
||||
@@ -31,11 +31,6 @@ public class BlockCrafter extends BlockNode {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBePlacedOpposite() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumDirectionType getDirectionType() {
|
||||
return EnumDirectionType.ANY;
|
||||
|
||||
@@ -31,11 +31,6 @@ public class BlockDestructor extends BlockNode {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBePlacedOpposite() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumDirectionType getDirectionType() {
|
||||
return EnumDirectionType.ANY;
|
||||
|
||||
@@ -31,11 +31,6 @@ public class BlockExporter extends BlockNode {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBePlacedOpposite() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumDirectionType getDirectionType() {
|
||||
return EnumDirectionType.ANY;
|
||||
|
||||
@@ -45,11 +45,6 @@ public class BlockExternalStorage extends BlockNode {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBePlacedOpposite() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumDirectionType getDirectionType() {
|
||||
return EnumDirectionType.ANY;
|
||||
|
||||
@@ -31,11 +31,6 @@ public class BlockImporter extends BlockNode {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBePlacedOpposite() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumDirectionType getDirectionType() {
|
||||
return EnumDirectionType.ANY;
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
{
|
||||
"transform": "forge:default-block"
|
||||
}
|
||||
]
|
||||
],
|
||||
"normal": {
|
||||
"model": "cube_all"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,9 @@
|
||||
{
|
||||
"transform": "forge:default-block"
|
||||
}
|
||||
]
|
||||
],
|
||||
"normal": {
|
||||
"model": "cube_all"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user