aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/blocks/BlockCasings9.java
diff options
context:
space:
mode:
authorNotAPenguin <michiel.vandeginste@gmail.com>2024-09-02 23:17:17 +0200
committerGitHub <noreply@github.com>2024-09-02 23:17:17 +0200
commit1b820de08a05070909a267e17f033fcf58ac8710 (patch)
tree02831a025986a06b20f87e5bcc69d1e0c639a342 /src/main/java/gregtech/common/blocks/BlockCasings9.java
parentafd3fd92b6a6ab9ab0d0dc3214e6bc8ff7a86c9b (diff)
downloadGT5-Unofficial-1b820de08a05070909a267e17f033fcf58ac8710.tar.gz
GT5-Unofficial-1b820de08a05070909a267e17f033fcf58ac8710.tar.bz2
GT5-Unofficial-1b820de08a05070909a267e17f033fcf58ac8710.zip
The Great Renaming (#3014)
* move kekztech to a single root dir * move detrav to a single root dir * move gtnh-lanthanides to a single root dir * move tectech and delete some gross reflection in gt++ * remove more reflection inside gt5u * delete more reflection in gt++ * fix imports * move bartworks and bwcrossmod * fix proxies * move galactigreg and ggfab * move gtneioreplugin * try to fix gt++ bee loader * apply the rename rules to BW * apply rename rules to bwcrossmod * apply rename rules to detrav scanner mod * apply rename rules to galacticgreg * apply rename rules to ggfab * apply rename rules to goodgenerator * apply rename rules to gtnh-lanthanides * apply rename rules to gt++ * apply rename rules to kekztech * apply rename rules to kubatech * apply rename rules to tectech * apply rename rules to gt apply the rename rules to gt * fix tt import * fix mui hopefully * fix coremod except intergalactic * rename assline recipe class * fix a class name i stumbled on * rename StructureUtility to GTStructureUtility to prevent conflict with structurelib * temporary rename of GTTooltipDataCache to old name * fix gt client/server proxy names
Diffstat (limited to 'src/main/java/gregtech/common/blocks/BlockCasings9.java')
-rw-r--r--src/main/java/gregtech/common/blocks/BlockCasings9.java96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/blocks/BlockCasings9.java b/src/main/java/gregtech/common/blocks/BlockCasings9.java
new file mode 100644
index 0000000000..a58ac1f25c
--- /dev/null
+++ b/src/main/java/gregtech/common/blocks/BlockCasings9.java
@@ -0,0 +1,96 @@
+package gregtech.common.blocks;
+
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Textures;
+import gregtech.api.util.GTLanguageManager;
+
+/**
+ * The casings are split into separate files because they are registered as regular blocks, and a regular block can have
+ * 16 subtypes at most.
+ */
+public class BlockCasings9 extends BlockCasingsAbstract {
+
+ public BlockCasings9() {
+ super(ItemCasings9.class, "gt.blockcasings9", MaterialCasings.INSTANCE, 16);
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "PBI Pipe Casing");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Advanced Filter Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".1.tooltip", "Less than five 0.1μm particles per m^3");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Primitive Wooden Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".3.name", "Superplasticizer-Treated High Strength Concrete");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Sterile Water Plant Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".5.name", "Reinforced Sterile Water Plant Casing");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Slick Sterile Flocculation Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".7.name", "Stabilized Naquadah Water Plant Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".8.name", "Inert Neutralization Water Plant Casing");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Reactive Gas Containment Casing");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Inert Filtration Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".11.name", "Heat-Resistant Trinium Plated Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".12.name", "Naquadria-Reinforced Water Plant Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".13.name", "High Energy Ultraviolet Emitter Casing");
+ // placeholder name
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".14.name", "Particle Beam Guidance Pipe Casing");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".15.name", "Femtometer-Calibrated Particle Beam Casing");
+
+ ItemList.Casing_Pipe_Polybenzimidazole.set(new ItemStack(this, 1, 0));
+ ItemList.Casing_Vent_T2.set(new ItemStack(this, 1, 1));
+ ItemList.WoodenCasing.set(new ItemStack(this, 1, 2));
+ ItemList.BlockIndustrialStrengthConcrete.set(new ItemStack(this, 1, 3));
+ ItemList.BlockIndustrialWaterPlantCasing.set(new ItemStack(this, 1, 4));
+ ItemList.BlockSterileWaterPlantCasing.set(new ItemStack(this, 1, 5));
+ ItemList.BlockFlocculationCasing.set(new ItemStack(this, 1, 6));
+ ItemList.BlockNaquadahReinforcedWaterPlantCasing.set(new ItemStack(this, 1, 7));
+ ItemList.BlockExtremeCorrosionResistantCasing.set(new ItemStack(this, 1, 8));
+ ItemList.BlockHighPressureResistantCasing.set(new ItemStack(this, 1, 9));
+ ItemList.BlockOzoneCasing.set(new ItemStack(this, 1, 10));
+ ItemList.BlockPlasmaHeatingCasing.set(new ItemStack(this, 1, 11));
+ ItemList.BlockNaquadriaReinforcedWaterPlantCasing.set(new ItemStack(this, 1, 12));
+ ItemList.BlockUltraVioletLaserEmitter.set(new ItemStack(this, 1, 13));
+ ItemList.BlockQuarkPipe.set(new ItemStack(this, 1, 14));
+ ItemList.BlockQuarkReleaseChamber.set(new ItemStack(this, 1, 15));
+ }
+
+ @Override
+ public int getTextureIndex(int aMeta) {
+ return (16 << 7) | (aMeta + 16);
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(int ordinalSide, int aMeta) {
+ return switch (aMeta) {
+ case 0 -> Textures.BlockIcons.MACHINE_CASING_PIPE_POLYBENZIMIDAZOLE.getIcon();
+ case 1 -> Textures.BlockIcons.MACHINE_CASING_VENT_T2.getIcon();
+ case 2 -> ordinalSide >= 2 ? Textures.BlockIcons.TEXTURE_METAL_PANEL_E.getIcon()
+ : Textures.BlockIcons.TEXTURE_METAL_PANEL_E_A.getIcon();
+ case 3 -> Textures.BlockIcons.INDUSTRIAL_STRENGTH_CONCRETE.getIcon();
+ case 4 -> Textures.BlockIcons.MACHINE_CASING_INDUSTRIAL_WATER_PLANT.getIcon();
+ case 5 -> Textures.BlockIcons.WATER_PLANT_CONCRETE_CASING.getIcon();
+ case 6 -> Textures.BlockIcons.MACHINE_CASING_FLOCCULATION.getIcon();
+ case 7 -> Textures.BlockIcons.MACHINE_CASING_NAQUADAH_REINFORCED_WATER_PLANT.getIcon();
+ case 8 -> Textures.BlockIcons.MACHINE_CASING_EXTREME_CORROSION_RESISTANT.getIcon();
+ case 9 -> Textures.BlockIcons.MACHINE_CASING_HIGH_PRESSURE_RESISTANT.getIcon();
+ case 10 -> Textures.BlockIcons.MACHINE_CASING_OZONE.getIcon();
+ case 11 -> Textures.BlockIcons.MACHINE_CASING_PLASMA_HEATER.getIcon();
+ case 12 -> Textures.BlockIcons.NAQUADRIA_REINFORCED_WATER_PLANT_CASING.getIcon();
+ case 13 -> Textures.BlockIcons.UV_BACKLIGHT_STERILIZER_CASING.getIcon();
+ case 14 -> Textures.BlockIcons.BLOCK_QUARK_PIPE.getIcon();
+ case 15 -> Textures.BlockIcons.BLOCK_QUARK_RELEASE_CHAMBER.getIcon();
+ default -> Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon();
+ };
+ }
+}