mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-10-25 20:22:23 +00:00
fix Some blocks texture location (#1273)
This commit is contained in:
1 parent
06c3bdd87b
commit
0949465539
3 files changed
+18
-5
No files matched your search
@@ -19,8 +19,7 @@ public class BlockAdvancedCraftingStorage extends BlockCraftingStorage {
|
||||
@Override
|
||||
public IIcon getIcon(final int direction, final int metadata) {
|
||||
return switch (metadata & (~4)) {
|
||||
default -> super.getIcon(0, -1);
|
||||
case 0 -> ExtraBlockTextures.BlockCraftingStorage256k.getIcon();
|
||||
default -> super.getIcon(0, 0);
|
||||
case 1 -> ExtraBlockTextures.BlockCraftingStorage1024k.getIcon();
|
||||
case 2 -> ExtraBlockTextures.BlockCraftingStorage4096k.getIcon();
|
||||
case 3 -> ExtraBlockTextures.BlockCraftingStorage16384k.getIcon();
|
||||
@@ -41,4 +40,9 @@ public class BlockAdvancedCraftingStorage extends BlockCraftingStorage {
|
||||
default -> this.getItemUnlocalizedName(is);
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureName() {
|
||||
return "appliedenergistics2:BlockCraftingStorage256k";
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public class BlockAdvancedCraftingUnit extends BlockCraftingUnit {
|
||||
@Override
|
||||
public IIcon getIcon(final int direction, final int metadata) {
|
||||
return switch (metadata) {
|
||||
default -> ExtraBlockTextures.BlockCraftingAccelerator64x.getIcon();
|
||||
default -> super.getIcon(0, 0);
|
||||
case FLAG_FORMED -> ExtraBlockTextures.BlockCraftingAccelerator64xFit.getIcon();
|
||||
case 1 -> ExtraBlockTextures.BlockCraftingAccelerator256x.getIcon();
|
||||
case 1 | FLAG_FORMED -> ExtraBlockTextures.BlockCraftingAccelerator256xFit.getIcon();
|
||||
@@ -41,4 +41,9 @@ public class BlockAdvancedCraftingUnit extends BlockCraftingUnit {
|
||||
}
|
||||
return this.getItemUnlocalizedName(is);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureName() {
|
||||
return "appliedenergistics2:BlockCraftingAccelerator64x";
|
||||
}
|
||||
}
|
||||
@@ -21,8 +21,7 @@ public class BlockSingularityCraftingStorage extends BlockCraftingStorage {
|
||||
@Override
|
||||
public IIcon getIcon(final int direction, final int metadata) {
|
||||
return switch (metadata & (~6)) {
|
||||
default -> super.getIcon(0, -1);
|
||||
case 0 -> ExtraBlockTextures.BlockCraftingStorageSingularity.getIcon();
|
||||
default -> super.getIcon(0, 0);
|
||||
case FLAG_FORMED -> ExtraBlockTextures.BlockCraftingStorageSingularityFit.getIcon();
|
||||
};
|
||||
}
|
||||
@@ -37,4 +36,9 @@ public class BlockSingularityCraftingStorage extends BlockCraftingStorage {
|
||||
public String getUnlocalizedName(final ItemStack is) {
|
||||
return "tile.appliedenergistics2.BlockCraftingStorageSingularity";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureName() {
|
||||
return "appliedenergistics2:BlockCraftingStorageSingularity";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user