Fix Machine Casings
This commit is contained in:
parent
c661f6b278
commit
8379115c97
4 changed files with 11 additions and 16 deletions
|
@ -18,7 +18,7 @@ import techreborn.init.ModBlocks;
|
|||
|
||||
import java.security.InvalidParameterException;
|
||||
|
||||
public class BlockMachineFrame extends BaseBlock implements ITexturedBlock {
|
||||
public class BlockMachineFrame extends BaseBlock {
|
||||
public static final String[] types = new String[] { "machine", "advancedMachine", "highlyAdvancedMachine" };
|
||||
public static final PropertyInteger METADATA = PropertyInteger.create("type", 0, types.length - 1);
|
||||
|
||||
|
@ -52,16 +52,6 @@ public class BlockMachineFrame extends BaseBlock implements ITexturedBlock {
|
|||
return getMetaFromState(state);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureNameFromState(IBlockState blockState, EnumFacing facing) {
|
||||
return "techreborn:blocks/machine/machine_blocks/" + types[getMetaFromState(blockState)] + "_machine_block";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int amountOfStates() {
|
||||
return types.length;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state) {
|
||||
return state.getValue(METADATA);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue