Remove useless method, fix 2 textures

This commit is contained in:
Raoul Van den Berge
2016-07-08 02:44:39 +02:00
parent 48023abb0f
commit b04589e77e
9 changed files with 14 additions and 42 deletions

View File

@@ -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;
}

View File

@@ -31,11 +31,6 @@ public class BlockConstructor extends BlockNode {
return true;
}
@Override
public boolean canBePlacedOpposite() {
return true;
}
@Override
public EnumDirectionType getDirectionType() {
return EnumDirectionType.ANY;

View File

@@ -31,11 +31,6 @@ public class BlockCrafter extends BlockNode {
return true;
}
@Override
public boolean canBePlacedOpposite() {
return true;
}
@Override
public EnumDirectionType getDirectionType() {
return EnumDirectionType.ANY;

View File

@@ -31,11 +31,6 @@ public class BlockDestructor extends BlockNode {
return true;
}
@Override
public boolean canBePlacedOpposite() {
return true;
}
@Override
public EnumDirectionType getDirectionType() {
return EnumDirectionType.ANY;

View File

@@ -31,11 +31,6 @@ public class BlockExporter extends BlockNode {
return true;
}
@Override
public boolean canBePlacedOpposite() {
return true;
}
@Override
public EnumDirectionType getDirectionType() {
return EnumDirectionType.ANY;

View File

@@ -45,11 +45,6 @@ public class BlockExternalStorage extends BlockNode {
}
}
@Override
public boolean canBePlacedOpposite() {
return true;
}
@Override
public EnumDirectionType getDirectionType() {
return EnumDirectionType.ANY;

View File

@@ -31,11 +31,6 @@ public class BlockImporter extends BlockNode {
return true;
}
@Override
public boolean canBePlacedOpposite() {
return true;
}
@Override
public EnumDirectionType getDirectionType() {
return EnumDirectionType.ANY;

View File

@@ -11,6 +11,9 @@
{
"transform": "forge:default-block"
}
]
],
"normal": {
"model": "cube_all"
}
}
}

View File

@@ -11,6 +11,9 @@
{
"transform": "forge:default-block"
}
]
],
"normal": {
"model": "cube_all"
}
}
}