Cleanup and warnings
This commit is contained in:
parent
d1178df673
commit
5406d08f5d
14 changed files with 29 additions and 49 deletions
|
@ -66,7 +66,7 @@ public class GuiAlloyFurnace extends AbstractContainerScreen<BuiltContainer> {
|
|||
|
||||
@Override
|
||||
protected void drawForeground(final int p_146979_1_, final int p_146979_2_) {
|
||||
final String name = I18n.translate("blockEntity.techreborn.iron_alloy_furnace.name");
|
||||
final String name = I18n.translate("block.techreborn.iron_alloy_furnace");
|
||||
this.font.draw(name, this.containerWidth / 2 - this.font.getStringWidth(name) / 2, 6,
|
||||
4210752);
|
||||
this.font.draw(I18n.translate("container.inventory", new Object[0]), 8,
|
||||
|
|
|
@ -29,7 +29,6 @@ import net.minecraft.block.BlockState;
|
|||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import reborncore.ClientProxy;
|
||||
import reborncore.RebornCoreClient;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
|
|
|
@ -31,10 +31,11 @@ import net.minecraft.client.resource.language.I18n;
|
|||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.text.LiteralText;
|
||||
import net.minecraft.util.Identifier;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonSimple;
|
||||
import techreborn.blockentity.machine.tier3.ChunkLoaderBlockEntity;
|
||||
|
||||
public class GuiChunkLoader extends AbstractContainerScreen {
|
||||
public class GuiChunkLoader extends AbstractContainerScreen<BuiltContainer> {
|
||||
|
||||
private static final Identifier texture = new Identifier("techreborn",
|
||||
"textures/gui/industrial_chunkloader.png");
|
||||
|
@ -80,7 +81,7 @@ public class GuiChunkLoader extends AbstractContainerScreen {
|
|||
|
||||
@Override
|
||||
protected void drawForeground(final int p_146979_1_, final int p_146979_2_) {
|
||||
final String name = I18n.translate("blockEntity.techreborn:chunk_loader.name");
|
||||
final String name = I18n.translate("block.techreborn.chunk_loader");
|
||||
this.font.draw(name, this.containerWidth / 2 - this.font.getStringWidth(name) / 2, 6,
|
||||
4210752);
|
||||
this.font.draw(I18n.translate("container.inventory", new Object[0]), 8,
|
||||
|
|
|
@ -29,7 +29,6 @@ import net.minecraft.block.BlockState;
|
|||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import reborncore.ClientProxy;
|
||||
import reborncore.RebornCoreClient;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
|
|
|
@ -28,7 +28,6 @@ import net.minecraft.block.BlockState;
|
|||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import reborncore.ClientProxy;
|
||||
import reborncore.RebornCoreClient;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
|
|
|
@ -29,7 +29,6 @@ import net.minecraft.client.gui.widget.ButtonWidget;
|
|||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
import reborncore.ClientProxy;
|
||||
import reborncore.RebornCoreClient;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
|
|
|
@ -28,7 +28,6 @@ import com.mojang.blaze3d.platform.GlStateManager;
|
|||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import reborncore.ClientProxy;
|
||||
import reborncore.RebornCoreClient;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
|
|
|
@ -29,7 +29,6 @@ import net.minecraft.block.Blocks;
|
|||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import reborncore.ClientProxy;
|
||||
import reborncore.RebornCoreClient;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
|
|
|
@ -29,7 +29,6 @@ import net.minecraft.block.Blocks;
|
|||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import reborncore.ClientProxy;
|
||||
import reborncore.RebornCoreClient;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
|
|
|
@ -72,7 +72,7 @@ public class GuiIronFurnace extends GuiBase {
|
|||
|
||||
@Override
|
||||
protected void drawForeground(int mouseX, int mouseY) {
|
||||
final String name = I18n.translate("blockEntity.techreborn.iron_furnace.name");
|
||||
final String name = I18n.translate("block.techreborn.iron_furnace");
|
||||
font.draw(name, containerWidth / 2 - font.getStringWidth(name) / 2, 6, 4210752);
|
||||
font.draw(I18n.translate("container.inventory", new Object[0]), 8, containerHeight - 96 + 2, 4210752);
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ package techreborn.client.gui;
|
|||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import reborncore.ClientProxy;
|
||||
import reborncore.RebornCoreClient;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue