|
1 | 1 | package gregtech.common.metatileentities.storage; |
2 | 2 |
|
3 | | -import codechicken.lib.raytracer.CuboidRayTraceResult; |
4 | | - |
5 | 3 | import gregtech.api.capability.impl.FilteredFluidHandler; |
6 | 4 | import gregtech.api.capability.impl.FluidTankList; |
7 | 5 | import gregtech.api.gui.GuiTextures; |
|
14 | 12 | import gregtech.api.metatileentity.interfaces.IGregTechTileEntity; |
15 | 13 | import gregtech.api.util.GTUtility; |
16 | 14 | import gregtech.client.renderer.texture.Textures; |
17 | | - |
18 | 15 | import gregtech.client.utils.RenderUtil; |
19 | 16 |
|
20 | 17 | import net.minecraft.client.renderer.texture.TextureAtlasSprite; |
|
32 | 29 | import net.minecraftforge.items.IItemHandlerModifiable; |
33 | 30 | import net.minecraftforge.items.ItemStackHandler; |
34 | 31 |
|
| 32 | +import codechicken.lib.raytracer.CuboidRayTraceResult; |
35 | 33 | import codechicken.lib.render.CCRenderState; |
36 | 34 | import codechicken.lib.render.pipeline.ColourMultiplier; |
37 | 35 | import codechicken.lib.render.pipeline.IVertexOperation; |
|
46 | 44 | import static gregtech.api.capability.GregtechDataCodes.*; |
47 | 45 |
|
48 | 46 | public class MetaTileEntityBuffer extends MetaTileEntity implements ITieredMetaTileEntity { |
| 47 | + |
49 | 48 | private final int tier; |
50 | 49 | private FluidTankList fluidTankList; |
51 | 50 | private ItemStackHandler itemStackHandler; |
@@ -116,12 +115,12 @@ protected ModularUI createUI(EntityPlayer entityPlayer) { |
116 | 115 | } |
117 | 116 | builder.widget(new ToggleButtonWidget(8, 18 * invTier + 21, 18, 18, |
118 | 117 | GuiTextures.BUTTON_ITEM_OUTPUT, this::isAutoOutputItems, this::setAutoOutputItems) |
119 | | - .setTooltipText("gregtech.gui.item_auto_output.tooltip") |
120 | | - .shouldUseBaseBackground()); |
| 118 | + .setTooltipText("gregtech.gui.item_auto_output.tooltip") |
| 119 | + .shouldUseBaseBackground()); |
121 | 120 | builder.widget(new ToggleButtonWidget(26, 18 * invTier + 21, 18, 18, |
122 | 121 | GuiTextures.BUTTON_FLUID_OUTPUT, this::isAutoOutputFluids, this::setAutoOutputFluids) |
123 | | - .setTooltipText("gregtech.gui.item_auto_output.tooltip") |
124 | | - .shouldUseBaseBackground()); |
| 122 | + .setTooltipText("gregtech.gui.item_auto_output.tooltip") |
| 123 | + .shouldUseBaseBackground()); |
125 | 124 | return builder.label(6, 6, getMetaFullName()) |
126 | 125 | .bindPlayerInventory(entityPlayer.inventory, GuiTextures.SLOT, 8, 42 + 18 * invTier) |
127 | 126 | .build(getHolder(), entityPlayer); |
@@ -303,11 +302,13 @@ public boolean hasFrontFacing() { |
303 | 302 | } |
304 | 303 |
|
305 | 304 | @Override |
306 | | - public void addInformation(ItemStack stack, @Nullable World player, @NotNull List<String> tooltip, boolean advanced) { |
| 305 | + public void addInformation(ItemStack stack, @Nullable World player, @NotNull List<String> tooltip, |
| 306 | + boolean advanced) { |
307 | 307 | super.addInformation(stack, player, tooltip, advanced); |
308 | 308 | tooltip.add(I18n.format("gregtech.machine.buffer.tooltip")); |
309 | 309 | tooltip.add(I18n.format("gregtech.universal.tooltip.item_storage_capacity", (int) Math.pow(tier + 2, 2))); |
310 | | - tooltip.add(I18n.format("gregtech.universal.tooltip.fluid_storage_capacity_mult", tier + 2, (int) (1000 * Math.pow(2, tier)))); |
| 310 | + tooltip.add(I18n.format("gregtech.universal.tooltip.fluid_storage_capacity_mult", tier + 2, |
| 311 | + (int) (1000 * Math.pow(2, tier)))); |
311 | 312 | } |
312 | 313 |
|
313 | 314 | @Override |
|
0 commit comments