Controller Texs
@@ -28,7 +28,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public class BlockController extends BlockBase {
|
public class BlockController extends BlockBase {
|
||||||
public static final PropertyEnum TYPE = PropertyEnum.create("type", EnumControllerType.class);
|
public static final PropertyEnum TYPE = PropertyEnum.create("type", EnumControllerType.class);
|
||||||
public static final PropertyInteger ENERGY = PropertyInteger.create("energy", 0, 8);
|
public static final PropertyInteger ENERGY = PropertyInteger.create("energy", 0, 7);
|
||||||
|
|
||||||
public BlockController() {
|
public BlockController() {
|
||||||
super("controller");
|
super("controller");
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class BlockDiskDrive extends BlockNode {
|
|||||||
@Override
|
@Override
|
||||||
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||||
return super.getActualState(state, world, pos)
|
return super.getActualState(state, world, pos)
|
||||||
.withProperty(STORED, ((TileDiskDrive) world.getTileEntity(pos)).getStoredForDisplay());
|
.withProperty(STORED, ((TileDiskDrive) world.getTileEntity(pos)).getStoredForScaledDisplay());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ public class TileDiskDrive extends TileNode implements IStorageProvider, IStorag
|
|||||||
return (int) Math.floor((stored / storedMax) * 7f);
|
return (int) Math.floor((stored / storedMax) * 7f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getStoredForDisplay() {
|
public int getStoredForScaledDisplay() {
|
||||||
return stored;
|
return stored;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -662,7 +662,7 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getEnergyScaledForDisplay() {
|
public int getEnergyScaledForDisplay() {
|
||||||
return getEnergyScaled(8);
|
return getEnergyScaled(7);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getEnergyScaledForComparator() {
|
public int getEnergyScaledForComparator() {
|
||||||
|
|||||||
@@ -55,11 +55,6 @@
|
|||||||
"textures": {
|
"textures": {
|
||||||
"front": "refinedstorage:blocks/controller_7"
|
"front": "refinedstorage:blocks/controller_7"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"8": {
|
|
||||||
"textures": {
|
|
||||||
"front": "refinedstorage:blocks/controller_8"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 450 B |
|
Before Width: | Height: | Size: 731 B After Width: | Height: | Size: 451 B |
|
Before Width: | Height: | Size: 731 B After Width: | Height: | Size: 449 B |
|
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 454 B |
|
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 453 B |
|
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 453 B |
|
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 455 B |
|
Before Width: | Height: | Size: 455 B |