feat: implement AE textures
|
@ -4,6 +4,7 @@ import covers1624.powerconverters.block.BlockPowerConverter;
|
|||
import covers1624.powerconverters.gui.PCCreativeTab;
|
||||
import net.anvilcraft.pccompat.tiles.TileEntityAppliedEnergisticsConsumer;
|
||||
import net.anvilcraft.pccompat.tiles.TileEntityAppliedEnergisticsProducer;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
|
@ -13,9 +14,19 @@ public class BlockPowerConverterAppliedEnergistics extends BlockPowerConverter {
|
|||
this.setCreativeTab(PCCreativeTab.tab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister reg) {
|
||||
for (int i = 0; i < 4; i++) {
|
||||
String state = i % 2 == 0 ? "off" : "on";
|
||||
String type = i < 2 ? "consumer" : "producer";
|
||||
|
||||
this._icons[i] = reg.registerIcon("pccompat:ae_" + type + "_" + state);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return meta == 0 ? new TileEntityAppliedEnergisticsProducer()
|
||||
: new TileEntityAppliedEnergisticsConsumer();
|
||||
return meta == 0 ? new TileEntityAppliedEnergisticsConsumer()
|
||||
: new TileEntityAppliedEnergisticsProducer();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ public class BlockPowerConverterUniversalElectricity extends BlockPowerConverter
|
|||
public void registerBlockIcons(IIconRegister reg) {
|
||||
for (int i = 0; i < 16; i++) {
|
||||
String state = i % 2 == 0 ? "off" : "on";
|
||||
String type = (i / 2) % 2 == 0 ? "producer" : "consumer";
|
||||
String type = (i / 2) % 2 == 0 ? "consumer" : "producer";
|
||||
|
||||
String voltage;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ public class TileEntityAppliedEnergisticsConsumer
|
|||
this.proxy = new AENetworkProxy(
|
||||
this,
|
||||
"proxy",
|
||||
new ItemStack(AppliedEnergisticsProxy.blockPowerConverter, 1, 1),
|
||||
new ItemStack(AppliedEnergisticsProxy.blockPowerConverter, 1, 0),
|
||||
true
|
||||
);
|
||||
this.proxy.setIdlePowerUsage(0.0);
|
||||
|
|
|
@ -26,7 +26,7 @@ public class TileEntityAppliedEnergisticsProducer
|
|||
this.proxy = new AENetworkProxy(
|
||||
this,
|
||||
"proxy",
|
||||
new ItemStack(AppliedEnergisticsProxy.blockPowerConverter, 1, 0),
|
||||
new ItemStack(AppliedEnergisticsProxy.blockPowerConverter, 1, 1),
|
||||
true
|
||||
);
|
||||
this.proxy.setIdlePowerUsage(0.0);
|
||||
|
|
|
@ -7,8 +7,8 @@ pccompat:power_converter_ue_5.name=UE 240V Producer
|
|||
pccompat:power_converter_ue_6.name=UE 480V Consumer
|
||||
pccompat:power_converter_ue_7.name=UE 480V Producer
|
||||
|
||||
pccompat:power_converter_ae_0.name=AE Producer
|
||||
pccompat:power_converter_ae_1.name=AE Consumer
|
||||
pccompat:power_converter_ae_0.name=AE Consumer
|
||||
pccompat:power_converter_ae_1.name=AE Producer
|
||||
|
||||
pccompat:power_converter_hbm_0.name=HBM Producer
|
||||
pccompat:power_converter_hbm_1.name=HBM Consumer
|
||||
|
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 904 B |
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 910 B |
Before Width: | Height: | Size: 904 B After Width: | Height: | Size: 908 B |
Before Width: | Height: | Size: 910 B After Width: | Height: | Size: 908 B |
Before Width: | Height: | Size: 906 B After Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 910 B |
Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 906 B |
Before Width: | Height: | Size: 910 B After Width: | Height: | Size: 909 B |
Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 900 B |
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 902 B After Width: | Height: | Size: 909 B |
Before Width: | Height: | Size: 895 B After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 893 B |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 895 B |
Before Width: | Height: | Size: 893 B After Width: | Height: | Size: 894 B |