aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/tectech/thing/casing/BlockGodforgeCasings.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/tectech/thing/casing/BlockGodforgeCasings.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/tectech/thing/casing/BlockGodforgeCasings.java')
-rw-r--r--src/main/java/tectech/thing/casing/BlockGodforgeCasings.java130
1 files changed, 130 insertions, 0 deletions
diff --git a/src/main/java/tectech/thing/casing/BlockGodforgeCasings.java b/src/main/java/tectech/thing/casing/BlockGodforgeCasings.java
new file mode 100644
index 0000000000..e744cdf9b7
--- /dev/null
+++ b/src/main/java/tectech/thing/casing/BlockGodforgeCasings.java
@@ -0,0 +1,130 @@
+package tectech.thing.casing;
+
+import java.util.List;
+
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraft.world.IBlockAccess;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.enums.Textures;
+import gregtech.api.objects.GTCopiedBlockTexture;
+import gregtech.api.util.GTLanguageManager;
+import gregtech.common.blocks.BlockCasingsAbstract;
+import gregtech.common.blocks.MaterialCasings;
+import tectech.thing.CustomItemList;
+
+public class BlockGodforgeCasings extends BlockCasingsAbstract {
+
+ private static IIcon GodforgeTrim;
+ private static IIcon GodforgeInner;
+ private static IIcon GodforgeSupport;
+ private static IIcon GodforgeOuter;
+ private static IIcon GodforgeEnergy;
+ private static IIcon GravitonModulatorT1;
+ private static IIcon GravitonModulatorT2;
+ private static IIcon GravitonModulatorT3;
+ private static IIcon PhononConduit;
+
+ private static final byte START_INDEX = 64;
+
+ public BlockGodforgeCasings() {
+ super(ItemCasingsGodforge.class, "gt.godforgecasing", MaterialCasings.INSTANCE);
+ for (byte b = 0; b < 16; b = (byte) (b + 1)) {
+ Textures.BlockIcons.casingTexturePages[7][b + START_INDEX] = new GTCopiedBlockTexture(this, 6, b);
+ }
+
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".0.name", "Singularity Reinforced Stellar Shielding Casing");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Celestial Matter Guidance Casing");
+ GTLanguageManager.addStringLocalization(
+ getUnlocalizedName() + ".2.name",
+ "Boundless Gravitationally Severed Structure Casing");
+ GTLanguageManager.addStringLocalization(
+ getUnlocalizedName() + ".3.name",
+ "Transcendentally Amplified Magnetic Confinement Casing");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Stellar Energy Siphon Casing");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Remote Graviton Flow Modulator");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Medial Graviton Flow Modulator");
+ GTLanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Central Graviton Flow Modulator");
+ GTLanguageManager
+ .addStringLocalization(getUnlocalizedName() + ".8.name", "Harmonic Phonon Transmission Conduit");
+
+ CustomItemList.Godforge_SingularityShieldingCasing.set(new ItemStack(this, 1, 0));
+ CustomItemList.Godforge_GuidanceCasing.set(new ItemStack(this, 1, 1));
+ CustomItemList.Godforge_BoundlessStructureCasing.set(new ItemStack(this, 1, 2));
+ CustomItemList.Godforge_MagneticConfinementCasing.set(new ItemStack(this, 1, 3));
+ CustomItemList.Godforge_StellarEnergySiphonCasing.set(new ItemStack(this, 1, 4));
+ CustomItemList.Godforge_GravitonFlowModulatorTier1.set(new ItemStack(this, 1, 5));
+ CustomItemList.Godforge_GravitonFlowModulatorTier2.set(new ItemStack(this, 1, 6));
+ CustomItemList.Godforge_GravitonFlowModulatorTier3.set(new ItemStack(this, 1, 7));
+ CustomItemList.Godforge_HarmonicPhononTransmissionConduit.set(new ItemStack(this, 1, 8));
+ }
+
+ @Override
+ public void registerBlockIcons(IIconRegister aIconRegister) {
+ GodforgeTrim = aIconRegister.registerIcon("gregtech:iconsets/GODFORGE_TRIM");
+ GodforgeInner = aIconRegister.registerIcon("gregtech:iconsets/GODFORGE_INNER");
+ GodforgeSupport = aIconRegister.registerIcon("gregtech:iconsets/GODFORGE_SUPPORT");
+ GodforgeOuter = aIconRegister.registerIcon("gregtech:iconsets/GRAVITON_TOP_BOTTOM");
+ GodforgeEnergy = aIconRegister.registerIcon("gregtech:iconsets/GODFORGE_ENERGY");
+ GravitonModulatorT1 = aIconRegister.registerIcon("gregtech:iconsets/GRAVITON_CASING_2");
+ GravitonModulatorT2 = aIconRegister.registerIcon("gregtech:iconsets/GRAVITON_CASING_1");
+ GravitonModulatorT3 = aIconRegister.registerIcon("gregtech:iconsets/GRAVITON_CASING_0");
+ PhononConduit = aIconRegister.registerIcon("gregtech:iconsets/PHONON_CONDUIT");
+ }
+
+ @Override
+ public IIcon getIcon(int aSide, int aMeta) {
+ switch (aMeta) {
+ case 0:
+ return GodforgeTrim;
+ case 1:
+ return GodforgeInner;
+ case 2:
+ return GodforgeSupport;
+ case 3:
+ return GodforgeOuter;
+ case 4:
+ return GodforgeEnergy;
+ case 5:
+ if (aSide < 2) {
+ return GodforgeOuter;
+ }
+ return GravitonModulatorT1;
+ case 6:
+ if (aSide < 2) {
+ return GodforgeOuter;
+ }
+ return GravitonModulatorT2;
+ case 7:
+ if (aSide < 2) {
+ return GodforgeOuter;
+ }
+ return GravitonModulatorT3;
+ case 8:
+ return PhononConduit;
+ default:
+ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
+ }
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(IBlockAccess aWorld, int xCoord, int yCoord, int zCoord, int aSide) {
+ int tMeta = aWorld.getBlockMetadata(xCoord, yCoord, zCoord);
+ return getIcon(aSide, tMeta);
+ }
+
+ @SuppressWarnings("unchecked")
+ @Override
+ public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList) {
+ for (int i = 0; i <= 8; i++) {
+ aList.add(new ItemStack(aItem, 1, i));
+ }
+ }
+}