All block textures now work
This commit is contained in:
parent
1475554f8e
commit
94a2229ed7
26 changed files with 568 additions and 59 deletions
|
@ -7,10 +7,11 @@ import net.minecraft.util.BlockPos;
|
|||
import net.minecraft.world.World;
|
||||
import techreborn.Core;
|
||||
import techreborn.blocks.BlockMachineBase;
|
||||
import techreborn.blocks.IAdvancedRotationTexture;
|
||||
import techreborn.client.GuiHandler;
|
||||
import techreborn.tiles.TileVacuumFreezer;
|
||||
|
||||
public class BlockVacuumFreezer extends BlockMachineBase {
|
||||
public class BlockVacuumFreezer extends BlockMachineBase implements IAdvancedRotationTexture{
|
||||
|
||||
|
||||
public BlockVacuumFreezer(Material material) {
|
||||
|
@ -36,4 +37,26 @@ public class BlockVacuumFreezer extends BlockMachineBase {
|
|||
z);
|
||||
return true;
|
||||
}
|
||||
|
||||
private final String prefix = "techreborn:/blocks/machine/";
|
||||
|
||||
@Override
|
||||
public String getFront(boolean isActive) {
|
||||
return prefix + "vacuum_freezer_front";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSide(boolean isActive) {
|
||||
return prefix + "machine_side" ;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTop(boolean isActive) {
|
||||
return prefix + "vacuum_freezer_top";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBottom(boolean isActive) {
|
||||
return prefix + "machine_bottom";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue