feat: implement AE textures

This commit is contained in:
Timo Ley 2023-07-09 16:27:05 +02:00
parent 965d0c485f
commit 7fae8c8682
25 changed files with 18 additions and 7 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 B

After

Width:  |  Height:  |  Size: 904 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 B

After

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 904 B

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 910 B

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 906 B

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 909 B

After

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 910 B

After

Width:  |  Height:  |  Size: 909 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 900 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 909 B

After

Width:  |  Height:  |  Size: 902 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 900 B

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 902 B

After

Width:  |  Height:  |  Size: 909 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 895 B

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 890 B

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 893 B

After

Width:  |  Height:  |  Size: 894 B