diff options
| author | NotAPenguin <michiel.vandeginste@gmail.com> | 2024-09-02 23:17:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-02 23:17:17 +0200 |
| commit | 1b820de08a05070909a267e17f033fcf58ac8710 (patch) | |
| tree | 02831a025986a06b20f87e5bcc69d1e0c639a342 /src/main/java/gregtech/common/tileentities/machines/multi/purification | |
| parent | afd3fd92b6a6ab9ab0d0dc3214e6bc8ff7a86c9b (diff) | |
| download | GT5-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/tileentities/machines/multi/purification')
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/LinkedPurificationUnit.java | 15 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchDegasifierControl.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_Hatch_DegasifierControlHatch.java) | 11 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchLensHousing.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_LensHousing.java) | 14 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchLensIndicator.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_LensIndicator.java) | 10 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchPHSensor.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_pHSensor.java) | 28 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationPlant.java) | 103 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitBaryonicPerfection.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitParticleExtractor.java) | 81 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitBase.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitBase.java) | 66 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitClarifier.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitClarifier.java) | 59 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitDegasser.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitDegasifier.java) | 84 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitFlocculation.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitFlocculation.java) | 61 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitOzonation.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitOzonation.java) | 59 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitPhAdjustment.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitPhAdjustment.java) | 123 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitPlasmaHeater.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitPlasmaHeater.java) | 97 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationUnitUVTreatment.java (renamed from src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationUnitUVTreatment.java) | 97 | ||||
| -rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/PurifiedWaterHelpers.java | 4 |
16 files changed, 447 insertions, 465 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/purification/LinkedPurificationUnit.java b/src/main/java/gregtech/common/tileentities/machines/multi/purification/LinkedPurificationUnit.java index 104cbe300f..8be6d0ab65 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/purification/LinkedPurificationUnit.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/purification/LinkedPurificationUnit.java @@ -1,6 +1,6 @@ package gregtech.common.tileentities.machines.multi.purification; -import static gregtech.GT_Mod.gregtechproxy; +import static gregtech.GTMod.gregtechproxy; import net.minecraft.client.Minecraft; import net.minecraft.nbt.NBTTagCompound; @@ -10,7 +10,7 @@ import net.minecraft.world.World; import net.minecraftforge.common.DimensionManager; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -import gregtech.api.util.GT_Util; +import gregtech.api.util.GTUtil; /** * Small wrapper around a GT_MetaTileEntity_PurificationUnitBase, to be stored in the main purification plant @@ -25,9 +25,9 @@ public class LinkedPurificationUnit { */ private boolean mIsActive = false; - private final GT_MetaTileEntity_PurificationUnitBase<?> mMetaTileEntity; + private final MTEPurificationUnitBase<?> mMetaTileEntity; - public LinkedPurificationUnit(GT_MetaTileEntity_PurificationUnitBase<?> unit) { + public LinkedPurificationUnit(MTEPurificationUnitBase<?> unit) { this.mMetaTileEntity = unit; } @@ -52,18 +52,17 @@ public class LinkedPurificationUnit { int z = linkData.getInteger("z"); // Find a TileEntity at this location - TileEntity te = GT_Util.getTileEntity(world, x, y, z, true); + TileEntity te = GTUtil.getTileEntity(world, x, y, z, true); if (te == null) { // This is a bug, throw a fatal error. throw new NullPointerException("Unit disappeared during server sync. This is a bug."); } // Cast TileEntity to proper GT TileEntity - this.mMetaTileEntity = (GT_MetaTileEntity_PurificationUnitBase<?>) ((IGregTechTileEntity) te) - .getMetaTileEntity(); + this.mMetaTileEntity = (MTEPurificationUnitBase<?>) ((IGregTechTileEntity) te).getMetaTileEntity(); } - public GT_MetaTileEntity_PurificationUnitBase<?> metaTileEntity() { + public MTEPurificationUnitBase<?> metaTileEntity() { return mMetaTileEntity; } diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_Hatch_DegasifierControlHatch.java b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchDegasifierControl.java index 3d49f05dca..53c042439c 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_Hatch_DegasifierControlHatch.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchDegasifierControl.java @@ -9,22 +9,21 @@ import gregtech.api.interfaces.IIconContainer; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch; +import gregtech.api.metatileentity.implementations.MTEHatch; import gregtech.api.render.TextureFactory; -public class GT_MetaTileEntity_Hatch_DegasifierControlHatch extends GT_MetaTileEntity_Hatch { +public class MTEHatchDegasifierControl extends MTEHatch { private byte outputStrength = 0; private static final IIconContainer textureFont = Textures.BlockIcons.OVERLAY_HATCH_PH_SENSOR; private static final IIconContainer textureFont_Glow = Textures.BlockIcons.OVERLAY_HATCH_PH_SENSOR_GLOW; - public GT_MetaTileEntity_Hatch_DegasifierControlHatch(int aID, String aName, String aNameRegional, int aTier) { + public MTEHatchDegasifierControl(int aID, String aName, String aNameRegional, int aTier) { super(aID, aName, aNameRegional, aTier, 0, "Outputs a control signal for the Degasser Purification Unit"); } - public GT_MetaTileEntity_Hatch_DegasifierControlHatch(String aName, int aTier, String[] aDescription, - ITexture[][][] aTextures) { + public MTEHatchDegasifierControl(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) { super(aName, aTier, 0, aDescription, aTextures); } @@ -67,7 +66,7 @@ public class GT_MetaTileEntity_Hatch_DegasifierControlHatch extends GT_MetaTileE @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { - return new GT_MetaTileEntity_Hatch_DegasifierControlHatch(mName, mTier, mDescriptionArray, mTextures); + return new MTEHatchDegasifierControl(mName, mTier, mDescriptionArray, mTextures); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_LensHousing.java b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchLensHousing.java index bd025e0e69..81dbab61cb 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_LensHousing.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchLensHousing.java @@ -6,28 +6,28 @@ import com.gtnewhorizons.modularui.api.screen.UIBuildContext; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.MetaTileEntity; -import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_InputBus; -import gregtech.client.GT_TooltipHandler; +import gregtech.api.metatileentity.implementations.MTEHatchInputBus; +import gregtech.client.GTTooltipHandler; -public class GT_MetaTileEntity_LensHousing extends GT_MetaTileEntity_Hatch_InputBus { +public class MTEHatchLensHousing extends MTEHatchInputBus { - public GT_MetaTileEntity_LensHousing(int id, String name, String nameRegional) { + public MTEHatchLensHousing(int id, String name, String nameRegional) { super( id, name, nameRegional, - GT_TooltipHandler.Tier.UV.ordinal(), + GTTooltipHandler.Tier.UV.ordinal(), 1, new String[] { "Holds a lens for UV laser focusing." }); } - public GT_MetaTileEntity_LensHousing(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) { + public MTEHatchLensHousing(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) { super(aName, aTier, aDescription, aTextures); } @Override public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { - return new GT_MetaTileEntity_LensHousing(this.mName, this.mTier, this.mDescriptionArray, this.mTextures); + return new MTEHatchLensHousing(this.mName, this.mTier, this.mDescriptionArray, this.mTextures); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_LensIndicator.java b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchLensIndicator.java index c017025d42..5ed495f935 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_LensIndicator.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchLensIndicator.java @@ -10,21 +10,21 @@ import gregtech.api.interfaces.IIconContainer; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch; +import gregtech.api.metatileentity.implementations.MTEHatch; import gregtech.api.render.TextureFactory; -public class GT_MetaTileEntity_LensIndicator extends GT_MetaTileEntity_Hatch { +public class MTEHatchLensIndicator extends MTEHatch { private boolean isOn = false; private static final IIconContainer textureFont = Textures.BlockIcons.OVERLAY_HATCH_PH_SENSOR; private static final IIconContainer textureFont_Glow = Textures.BlockIcons.OVERLAY_HATCH_PH_SENSOR_GLOW; - public GT_MetaTileEntity_LensIndicator(int aID, String aName, String aNameRegional, int aTier) { + public MTEHatchLensIndicator(int aID, String aName, String aNameRegional, int aTier) { super(aID, aName, aNameRegional, aTier, 0, "Indicates required lens swaps."); } - public GT_MetaTileEntity_LensIndicator(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) { + public MTEHatchLensIndicator(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) { super(aName, aTier, 0, aDescription, aTextures); } @@ -99,7 +99,7 @@ public class GT_MetaTileEntity_LensIndicator extends GT_MetaTileEntity_Hatch { @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { - return new GT_MetaTileEntity_LensIndicator(mName, mTier, mDescriptionArray, mTextures); + return new MTEHatchLensIndicator(mName, mTier, mDescriptionArray, mTextures); } @Override diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_pHSensor.java b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchPHSensor.java index e8e393cb3c..790b14c2f5 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_pHSensor.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEHatchPHSensor.java @@ -14,18 +14,18 @@ import com.gtnewhorizons.modularui.common.widget.TextWidget; import com.gtnewhorizons.modularui.common.widget.textfield.NumericWidget; import gregtech.api.enums.Textures; -import gregtech.api.gui.modularui.GT_UIInfos; -import gregtech.api.gui.modularui.GT_UITextures; +import gregtech.api.gui.modularui.GTUIInfos; +import gregtech.api.gui.modularui.GTUITextures; import gregtech.api.interfaces.IIconContainer; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch; +import gregtech.api.metatileentity.implementations.MTEHatch; import gregtech.api.render.TextureFactory; -import gregtech.api.util.GT_Utility; +import gregtech.api.util.GTUtility; import gregtech.common.gui.modularui.widget.CoverCycleButtonWidget; -public class GT_MetaTileEntity_pHSensor extends GT_MetaTileEntity_Hatch { +public class MTEHatchPHSensor extends MTEHatch { // This implementation was largely copied from the neutron sensor hatch @@ -36,11 +36,11 @@ public class GT_MetaTileEntity_pHSensor extends GT_MetaTileEntity_Hatch { private static final IIconContainer textureFont = Textures.BlockIcons.OVERLAY_HATCH_PH_SENSOR; private static final IIconContainer textureFont_Glow = Textures.BlockIcons.OVERLAY_HATCH_PH_SENSOR_GLOW; - public GT_MetaTileEntity_pHSensor(int aID, String aName, String aNameRegional, int aTier) { + public MTEHatchPHSensor(int aID, String aName, String aNameRegional, int aTier) { super(aID, aName, aNameRegional, aTier, 0, "Detects pH value."); } - public GT_MetaTileEntity_pHSensor(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) { + public MTEHatchPHSensor(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) { super(aName, aTier, 0, aDescription, aTextures); } @@ -89,7 +89,7 @@ public class GT_MetaTileEntity_pHSensor extends GT_MetaTileEntity_Hatch { @Override public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, ForgeDirection side, float aX, float aY, float aZ) { - GT_UIInfos.openGTTileEntityUI(aBaseMetaTileEntity, aPlayer); + GTUIInfos.openGTTileEntityUI(aBaseMetaTileEntity, aPlayer); return true; } @@ -137,7 +137,7 @@ public class GT_MetaTileEntity_pHSensor extends GT_MetaTileEntity_Hatch { @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { - return new GT_MetaTileEntity_pHSensor(mName, mTier, mDescriptionArray, mTextures); + return new MTEHatchPHSensor(mName, mTier, mDescriptionArray, mTextures); } @Override @@ -154,14 +154,14 @@ public class GT_MetaTileEntity_pHSensor extends GT_MetaTileEntity_Hatch { } public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) { - final String INVERTED = GT_Utility.trans("INVERTED", "Inverted"); - final String NORMAL = GT_Utility.trans("NORMAL", "Normal"); + final String INVERTED = GTUtility.trans("INVERTED", "Inverted"); + final String NORMAL = GTUtility.trans("NORMAL", "Normal"); builder.widget( new CoverCycleButtonWidget().setToggle(() -> inverted, (val) -> inverted = val) .setTextureGetter( - (state) -> state == 1 ? GT_UITextures.OVERLAY_BUTTON_REDSTONE_ON - : GT_UITextures.OVERLAY_BUTTON_REDSTONE_OFF) + (state) -> state == 1 ? GTUITextures.OVERLAY_BUTTON_REDSTONE_ON + : GTUITextures.OVERLAY_BUTTON_REDSTONE_OFF) .addTooltip(0, NORMAL) .addTooltip(1, INVERTED) .setPos(10, 8)) @@ -180,7 +180,7 @@ public class GT_MetaTileEntity_pHSensor extends GT_MetaTileEntity_Hatch { .setTextColor(Color.WHITE.dark(1)) .setTextAlignment(Alignment.CenterLeft) .setFocusOnGuiOpen(true) - .setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD.withOffset(-1, -1, 2, 2)) + .setBackground(GTUITextures.BACKGROUND_TEXT_FIELD.withOffset(-1, -1, 2, 2)) .setPos(10, 28) .setSize(77, 12)) .widget( diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationPlant.java b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java index 42bfd06d7a..86f2c2b5bd 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/purification/GT_MetaTileEntity_PurificationPlant.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java @@ -4,18 +4,18 @@ import static com.gtnewhorizon.structurelib.structure.StructureUtility.lazy; import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock; import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlockAnyMeta; import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofChain; -import static gregtech.api.enums.GT_HatchElement.Energy; -import static gregtech.api.enums.GT_HatchElement.ExoticEnergy; -import static gregtech.api.enums.GT_HatchElement.Maintenance; -import static gregtech.api.enums.GT_Values.AuthorNotAPenguin; +import static gregtech.api.enums.GTValues.AuthorNotAPenguin; +import static gregtech.api.enums.HatchElement.Energy; +import static gregtech.api.enums.HatchElement.ExoticEnergy; +import static gregtech.api.enums.HatchElement.Maintenance; import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_PROCESSING_ARRAY; import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE; import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE_GLOW; import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_PROCESSING_ARRAY_GLOW; -import static gregtech.api.util.GT_RecipeBuilder.SECONDS; -import static gregtech.api.util.GT_StructureUtility.ofFrame; -import static gregtech.common.tileentities.machines.multi.purification.GT_MetaTileEntity_PurificationUnitBase.WATER_BOOST_BONUS_CHANCE; -import static gregtech.common.tileentities.machines.multi.purification.GT_MetaTileEntity_PurificationUnitBase.WATER_BOOST_NEEDED_FLUID; +import static gregtech.api.util.GTRecipeBuilder.SECONDS; +import static gregtech.api.util.GTStructureUtility.ofFrame; +import static gregtech.common.tileentities.machines.multi.purification.MTEPurificationUnitBase.WATER_BOOST_BONUS_CHANCE; +import static gregtech.common.tileentities.machines.multi.purification.MTEPurificationUnitBase.WATER_BOOST_NEEDED_FLUID; import java.io.IOException; import java.util.ArrayList; @@ -52,27 +52,26 @@ import com.gtnewhorizons.modularui.common.widget.Scrollable; import com.gtnewhorizons.modularui.common.widget.SlotWidget; import com.gtnewhorizons.modularui.common.widget.TextWidget; -import gregtech.api.GregTech_API; +import gregtech.api.GregTechAPI; import gregtech.api.enums.ItemList; import gregtech.api.enums.Materials; import gregtech.api.enums.Textures; -import gregtech.api.gui.modularui.GT_UITextures; +import gregtech.api.gui.modularui.GTUITextures; import gregtech.api.interfaces.IHatchElement; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_ExtendedPowerMultiBlockBase; +import gregtech.api.metatileentity.implementations.MTEExtendedPowerMultiBlockBase; import gregtech.api.render.TextureFactory; -import gregtech.api.util.GT_Log; -import gregtech.api.util.GT_Multiblock_Tooltip_Builder; -import gregtech.api.util.GT_StructureUtility; -import gregtech.api.util.GT_Utility; +import gregtech.api.util.GTLog; +import gregtech.api.util.GTStructureUtility; +import gregtech.api.util.GTUtility; +import gregtech.api.util.MultiblockTooltipBuilder; import gregtech.api.util.shutdown.ShutDownReasonRegistry; import gregtech.common.gui.modularui.widget.ShutDownReasonSyncer; import gregtech.common.gui.modularui.widget.TextButtonWidget; -public class GT_MetaTileEntity_PurificationPlant - extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<GT_MetaTileEntity_PurificationPlant> +public class MTEPurificationPlant extends MTEExtendedPowerMultiBlockBase<MTEPurificationPlant> implements ISurvivalConstructable { private static final String STRUCTURE_PIECE_MAIN = "main"; @@ -96,8 +95,8 @@ public class GT_MetaTileEntity_PurificationPlant */ private final List<LinkedPurificationUnit> mLinkedUnits = new ArrayList<>(); - private static final IStructureDefinition<GT_MetaTileEntity_PurificationPlant> STRUCTURE_DEFINITION = StructureDefinition - .<GT_MetaTileEntity_PurificationPlant>builder() + private static final IStructureDefinition<MTEPurificationPlant> STRUCTURE_DEFINITION = StructureDefinition + .<MTEPurificationPlant>builder() .addShape(STRUCTURE_PIECE_MAIN, PurificationPlantStructureString.STRUCTURE_STRING) // Create an identical structure for survival autobuild, with water replaced with air .addShape( @@ -109,13 +108,13 @@ public class GT_MetaTileEntity_PurificationPlant .toArray(String[]::new)) .toArray(String[][]::new)) // Superplasticizer-treated high strength concrete - .addElement('A', ofBlock(GregTech_API.sBlockCasings9, 3)) + .addElement('A', ofBlock(GregTechAPI.sBlockCasings9, 3)) // Sterile Water Plant Casing - .addElement('B', ofBlock(GregTech_API.sBlockCasings9, 4)) + .addElement('B', ofBlock(GregTechAPI.sBlockCasings9, 4)) // Reinforced Sterile Water Plant Casing - .addElement('C', ofBlock(GregTech_API.sBlockCasings9, 5)) + .addElement('C', ofBlock(GregTechAPI.sBlockCasings9, 5)) // Tinted Industrial Glass - .addElement('D', ofBlockAnyMeta(GregTech_API.sBlockTintedGlass, 0)) + .addElement('D', ofBlockAnyMeta(GregTechAPI.sBlockTintedGlass, 0)) .addElement('F', ofBlock(Blocks.water, 0)) .addElement('G', ofFrame(Materials.Tungsten)) // Hatch space @@ -123,19 +122,19 @@ public class GT_MetaTileEntity_PurificationPlant 'H', ofChain( lazy( - t -> GT_StructureUtility.<GT_MetaTileEntity_PurificationPlant>buildHatchAdder() + t -> GTStructureUtility.<MTEPurificationPlant>buildHatchAdder() .atLeastList(t.getAllowedHatches()) .dot(1) - .casingIndex(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings9, 4)) + .casingIndex(GTUtility.getCasingTextureIndex(GregTechAPI.sBlockCasings9, 4)) .build()), - ofBlock(GregTech_API.sBlockCasings9, 4))) + ofBlock(GregTechAPI.sBlockCasings9, 4))) .build(); - public GT_MetaTileEntity_PurificationPlant(int aID, String aName, String aNameRegional) { + public MTEPurificationPlant(int aID, String aName, String aNameRegional) { super(aID, aName, aNameRegional); } - public GT_MetaTileEntity_PurificationPlant(String aName) { + public MTEPurificationPlant(String aName) { super(aName); } @@ -148,7 +147,7 @@ public class GT_MetaTileEntity_PurificationPlant public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBuildEnvironment env) { int built = survivialBuildPiece(STRUCTURE_PIECE_MAIN_SURVIVAL, stackSize, 3, 6, 0, elementBudget, env, true); if (built == -1) { - GT_Utility.sendChatToPlayer( + GTUtility.sendChatToPlayer( env.getActor(), EnumChatFormatting.GREEN + "Auto placing done ! Now go place the water yourself !"); return 0; @@ -157,13 +156,13 @@ public class GT_MetaTileEntity_PurificationPlant } @Override - public IStructureDefinition<GT_MetaTileEntity_PurificationPlant> getStructureDefinition() { + public IStructureDefinition<MTEPurificationPlant> getStructureDefinition() { return STRUCTURE_DEFINITION; } @Override - protected GT_Multiblock_Tooltip_Builder createTooltip() { - final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); + protected MultiblockTooltipBuilder createTooltip() { + final MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder(); tt.addMachineType("Purification Plant") .addInfo("Main controller block for the Water Purification Plant.") .addInfo( @@ -188,13 +187,13 @@ public class GT_MetaTileEntity_PurificationPlant .addInfo("Every recipe has a base chance of success. Success rate can be boosted") .addInfo("by using a portion of the target output as a secondary input.") .addInfo( - EnumChatFormatting.RED + GT_Utility.formatNumbers(WATER_BOOST_NEEDED_FLUID * 100) + EnumChatFormatting.RED + GTUtility.formatNumbers(WATER_BOOST_NEEDED_FLUID * 100) + "%" + EnumChatFormatting.GRAY + " of output yield will be consumed in exchange for an") .addInfo( "additive " + EnumChatFormatting.RED - + GT_Utility.formatNumbers(WATER_BOOST_BONUS_CHANCE * 100) + + GTUtility.formatNumbers(WATER_BOOST_BONUS_CHANCE * 100) + "%" + EnumChatFormatting.GRAY + " increase to success.") @@ -270,7 +269,7 @@ public class GT_MetaTileEntity_PurificationPlant @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { - return new GT_MetaTileEntity_PurificationPlant(this.mName); + return new MTEPurificationPlant(this.mName); } @Override @@ -279,7 +278,7 @@ public class GT_MetaTileEntity_PurificationPlant if (side == facing) { if (active) return new ITexture[] { Textures.BlockIcons - .getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings9, 4)), + .getCasingTextureForId(GTUtility.getCasingTextureIndex(GregTechAPI.sBlockCasings9, 4)), TextureFactory.builder() .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE) .extFacing() @@ -291,7 +290,7 @@ public class GT_MetaTileEntity_PurificationPlant .build() }; return new ITexture[] { Textures.BlockIcons - .getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings9, 4)), + .getCasingTextureForId(GTUtility.getCasingTextureIndex(GregTechAPI.sBlockCasings9, 4)), TextureFactory.builder() .addIcon(OVERLAY_FRONT_PROCESSING_ARRAY) .extFacing() @@ -302,8 +301,8 @@ public class GT_MetaTileEntity_PurificationPlant .glow() .build() }; } - return new ITexture[] { Textures.BlockIcons - .getCasingTextureForId(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings9, 4)) }; + return new ITexture[] { + Textures.BlockIcons.getCasingTextureForId(GTUtility.getCasingTextureIndex(GregTechAPI.sBlockCasings9, 4)) }; } @Override @@ -311,7 +310,7 @@ public class GT_MetaTileEntity_PurificationPlant return true; } - private List<IHatchElement<? super GT_MetaTileEntity_PurificationPlant>> getAllowedHatches() { + private List<IHatchElement<? super MTEPurificationPlant>> getAllowedHatches() { return ImmutableList.of(Maintenance, Energy, ExoticEnergy); } @@ -388,7 +387,7 @@ public class GT_MetaTileEntity_PurificationPlant // Update progress time for active units for (LinkedPurificationUnit unit : this.mLinkedUnits) { if (unit.isActive()) { - GT_MetaTileEntity_PurificationUnitBase<?> metaTileEntity = unit.metaTileEntity(); + MTEPurificationUnitBase<?> metaTileEntity = unit.metaTileEntity(); metaTileEntity.mProgresstime = mProgresstime; } } @@ -423,7 +422,7 @@ public class GT_MetaTileEntity_PurificationPlant // Find active units and notify them that the cycle started for (LinkedPurificationUnit unit : this.mLinkedUnits) { - GT_MetaTileEntity_PurificationUnitBase<?> metaTileEntity = unit.metaTileEntity(); + MTEPurificationUnitBase<?> metaTileEntity = unit.metaTileEntity(); PurificationUnitStatus status = metaTileEntity.status(); // Unit needs to be online to be considered active. if (status == PurificationUnitStatus.ONLINE) { @@ -444,7 +443,7 @@ public class GT_MetaTileEntity_PurificationPlant // Mark all units as inactive and reset their progress time for (LinkedPurificationUnit unit : this.mLinkedUnits) { - GT_MetaTileEntity_PurificationUnitBase<?> metaTileEntity = unit.metaTileEntity(); + MTEPurificationUnitBase<?> metaTileEntity = unit.metaTileEntity(); // If this unit was active, end the cycle if (unit.isActive()) { metaTileEntity.endCycle(); @@ -482,11 +481,11 @@ public class GT_MetaTileEntity_PurificationPlant return false; } - public void registerLinkedUnit(GT_MetaTileEntity_PurificationUnitBase<?> unit) { + public void registerLinkedUnit(MTEPurificationUnitBase<?> unit) { this.mLinkedUnits.add(new LinkedPurificationUnit(unit)); } - public void unregisterLinkedUnit(GT_MetaTileEntity_PurificationUnitBase<?> unit) { + public void unregisterLinkedUnit(MTEPurificationUnitBase<?> unit) { this.mLinkedUnits.removeIf(link -> link.metaTileEntity() == unit); } @@ -555,7 +554,7 @@ public class GT_MetaTileEntity_PurificationPlant screenElements .widget( - new TextWidget(GT_Utility.trans("138", "Incomplete Structure.")).setDefaultColor(EnumChatFormatting.RED) + new TextWidget(GTUtility.trans("138", "Incomplete Structure.")).setDefaultColor(EnumChatFormatting.RED) .setEnabled(widget -> !mMachine)) .widget(new FakeSyncWidget.BooleanSyncer(() -> mMachine, val -> mMachine = val)); @@ -572,7 +571,7 @@ public class GT_MetaTileEntity_PurificationPlant () -> getBaseMetaTileEntity().isActive(), val -> getBaseMetaTileEntity().setActive(val))); screenElements.widget( - new TextWidget(GT_Utility.trans("142", "Running perfectly.")).setDefaultColor(EnumChatFormatting.GREEN) + new TextWidget(GTUtility.trans("142", "Running perfectly.")).setDefaultColor(EnumChatFormatting.GREEN) .setEnabled( widget -> getBaseMetaTileEntity().getErrorDisplayID() == 0 && getBaseMetaTileEntity().isActive())); screenElements.widget( @@ -583,7 +582,7 @@ public class GT_MetaTileEntity_PurificationPlant .setTextAlignment(Alignment.CenterLeft) .setEnabled( widget -> shouldDisplayShutDownReason() && !getBaseMetaTileEntity().isActive() - && GT_Utility.isStringValid( + && GTUtility.isStringValid( getBaseMetaTileEntity().getLastShutDownReason() .getDisplayString()) && getBaseMetaTileEntity().wasShutdown())) @@ -610,7 +609,7 @@ public class GT_MetaTileEntity_PurificationPlant final int windowWidth = 260; final int windowHeight = 200; ModularWindow.Builder builder = ModularWindow.builder(windowWidth, windowHeight); - builder.setBackground(GT_UITextures.BACKGROUND_SINGLEBLOCK_DEFAULT); + builder.setBackground(GTUITextures.BACKGROUND_SINGLEBLOCK_DE |
