aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/metatileentity/examples
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
committerJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
commit0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a (patch)
tree1e2c649f3a6ce3f6b2babd0098a5f4819e9cd0b6 /src/main/java/gregtech/api/metatileentity/examples
parentf8cc82edeb9810c45cba762d733a2c909a302faa (diff)
downloadGT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.gz
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.bz2
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.zip
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity/examples')
-rw-r--r--src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java61
1 files changed, 17 insertions, 44 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java b/src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java
index be1904aaf5..a372a37103 100644
--- a/src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java
+++ b/src/main/java/gregtech/api/metatileentity/examples/GT_MetaTileEntity_E_Furnace.java
@@ -2,6 +2,8 @@ package gregtech.api.metatileentity.examples;
import static gregtech.api.enums.Textures.BlockIcons.*;
+import net.minecraft.item.ItemStack;
+
import gregtech.api.enums.SoundResource;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
@@ -10,12 +12,12 @@ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachin
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Utility;
-import net.minecraft.item.ItemStack;
/**
* This Example Implementation still works, however I use something completely different in my own Code.
*/
public class GT_MetaTileEntity_E_Furnace extends GT_MetaTileEntity_BasicMachine {
+
public GT_MetaTileEntity_E_Furnace(int aID, String aName, String aNameRegional, int aTier) {
super(
aID,
@@ -30,66 +32,37 @@ public class GT_MetaTileEntity_E_Furnace extends GT_MetaTileEntity_BasicMachine
"smelting",
TextureFactory.of(
TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE),
- TextureFactory.builder()
- .addIcon(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE_GLOW)
- .glow()
- .build()),
+ TextureFactory.builder().addIcon(OVERLAY_SIDE_STEAM_FURNACE_ACTIVE_GLOW).glow().build()),
TextureFactory.of(
TextureFactory.of(OVERLAY_SIDE_STEAM_FURNACE),
- TextureFactory.builder()
- .addIcon(OVERLAY_SIDE_STEAM_FURNACE_GLOW)
- .glow()
- .build()),
+ TextureFactory.builder().addIcon(OVERLAY_SIDE_STEAM_FURNACE_GLOW).glow().build()),
TextureFactory.of(
TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE),
- TextureFactory.builder()
- .addIcon(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE_GLOW)
- .glow()
- .build()),
+ TextureFactory.builder().addIcon(OVERLAY_FRONT_STEAM_FURNACE_ACTIVE_GLOW).glow().build()),
TextureFactory.of(
TextureFactory.of(OVERLAY_FRONT_STEAM_FURNACE),
- TextureFactory.builder()
- .addIcon(OVERLAY_FRONT_STEAM_FURNACE_GLOW)
- .glow()
- .build()),
+ TextureFactory.builder().addIcon(OVERLAY_FRONT_STEAM_FURNACE_GLOW).glow().build()),
TextureFactory.of(
TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE_ACTIVE),
- TextureFactory.builder()
- .addIcon(OVERLAY_TOP_STEAM_FURNACE_ACTIVE_GLOW)
- .glow()
- .build()),
+ TextureFactory.builder().addIcon(OVERLAY_TOP_STEAM_FURNACE_ACTIVE_GLOW).glow().build()),
TextureFactory.of(
TextureFactory.of(OVERLAY_TOP_STEAM_FURNACE),
- TextureFactory.builder()
- .addIcon(OVERLAY_TOP_STEAM_FURNACE_GLOW)
- .glow()
- .build()),
+ TextureFactory.builder().addIcon(OVERLAY_TOP_STEAM_FURNACE_GLOW).glow().build()),
TextureFactory.of(
TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE),
- TextureFactory.builder()
- .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW)
- .glow()
- .build()),
+ TextureFactory.builder().addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE_GLOW).glow().build()),
TextureFactory.of(
TextureFactory.of(OVERLAY_BOTTOM_STEAM_FURNACE),
- TextureFactory.builder()
- .addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_GLOW)
- .glow()
- .build()));
+ TextureFactory.builder().addIcon(OVERLAY_BOTTOM_STEAM_FURNACE_GLOW).glow().build()));
}
- public GT_MetaTileEntity_E_Furnace(
- String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName) {
+ public GT_MetaTileEntity_E_Furnace(String aName, int aTier, String aDescription, ITexture[][][] aTextures,
+ String aGUIName, String aNEIName) {
super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
}
- public GT_MetaTileEntity_E_Furnace(
- String aName,
- int aTier,
- String[] aDescription,
- ITexture[][][] aTextures,
- String aGUIName,
- String aNEIName) {
+ public GT_MetaTileEntity_E_Furnace(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures,
+ String aGUIName, String aNEIName) {
super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
}
@@ -110,8 +83,8 @@ public class GT_MetaTileEntity_E_Furnace extends GT_MetaTileEntity_BasicMachine
}
@Override
- protected boolean allowPutStackValidated(
- IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
+ protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide,
+ ItemStack aStack) {
return super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, aSide, aStack)
&& GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64, aStack), false, null) != null;
}