mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 12:19:48 +00:00
quick fix : Private field may be 'final'
This commit is contained in:
1 parent
b1c2569992
commit
ae363450b1
42 files changed
+81
-81
No files matched your search
@@ -13,13 +13,13 @@ import tconstruct.tools.logic.BattlesignLogic;
|
||||
import tconstruct.util.network.SignDataPacket;
|
||||
|
||||
public class BattlesignGui extends GuiScreen {
|
||||
private BattlesignLogic battlesign;
|
||||
private final BattlesignLogic battlesign;
|
||||
|
||||
private float bgColR = 1F;
|
||||
private float bgColG = 1F;
|
||||
private float bgColB = 1F;
|
||||
private static ResourceLocation background = new ResourceLocation("tinker:textures/gui/battlesignText.png");
|
||||
private String[] text = {"", "", "", "", ""};
|
||||
private static final ResourceLocation background = new ResourceLocation("tinker:textures/gui/battlesignText.png");
|
||||
private final String[] text = {"", "", "", "", ""};
|
||||
int currentLine = 0;
|
||||
|
||||
public BattlesignGui(BattlesignLogic logic) {
|
||||
|
||||
@@ -13,8 +13,8 @@ public class ChestSlot extends Slot {
|
||||
* A Slot, used for adjacent Chest Inventories, that can be disabled.
|
||||
*/
|
||||
public boolean enabled = true;
|
||||
private int accessSide;
|
||||
private int visualIndex;
|
||||
private final int accessSide;
|
||||
private final int visualIndex;
|
||||
|
||||
public ChestSlot(IInventory inventory, int index, int visualIndex, int xPosition, int yPosition, int accessSide) {
|
||||
super(inventory, index, xPosition, yPosition);
|
||||
|
||||
@@ -13,7 +13,7 @@ import tconstruct.tools.logic.FurnaceLogic;
|
||||
public class FurnaceGui extends GuiContainer {
|
||||
private static final ResourceLocation furnaceGuiTextures =
|
||||
new ResourceLocation("textures/gui/container/furnace.png");
|
||||
private FurnaceLogic logic;
|
||||
private final FurnaceLogic logic;
|
||||
|
||||
public FurnaceGui(InventoryPlayer inventory, FurnaceLogic furnace) {
|
||||
super(new FurnaceContainer(inventory, furnace));
|
||||
|
||||
@@ -18,7 +18,7 @@ public class GuiButtonTool extends GuiButton {
|
||||
int textureY;
|
||||
public String texture;
|
||||
public ToolGuiElement element;
|
||||
private ResourceLocation background; // = new
|
||||
private final ResourceLocation background; // = new
|
||||
// ResourceLocation("tinker",
|
||||
// "textures/gui/armorextended.png");
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.minecraft.tileentity.TileEntityFurnace;
|
||||
import tconstruct.tools.logic.FurnaceLogic;
|
||||
|
||||
public class FurnaceContainer extends Container {
|
||||
private FurnaceLogic furnace;
|
||||
private final FurnaceLogic furnace;
|
||||
private int lastCookTime;
|
||||
private int lastBurnTime;
|
||||
private int lastItemBurnTime;
|
||||
|
||||
@@ -7,15 +7,15 @@ import net.minecraft.item.ItemStack;
|
||||
|
||||
public class InventoryCraftingStation extends InventoryCrafting {
|
||||
/** the width of the crafting inventory */
|
||||
private int inventoryWidth;
|
||||
private final int inventoryWidth;
|
||||
|
||||
/**
|
||||
* Class containing the callbacks for the events on_GUIClosed and
|
||||
* on_CraftMaxtrixChanged.
|
||||
*/
|
||||
private Container eventHandler;
|
||||
private final Container eventHandler;
|
||||
|
||||
private InventoryLogic logic;
|
||||
private final InventoryLogic logic;
|
||||
|
||||
public InventoryCraftingStation(Container par1Container, int size, int height, InventoryLogic logic) {
|
||||
super(par1Container, size, height);
|
||||
|
||||
@@ -8,7 +8,7 @@ import tconstruct.library.tools.AbilityHelper;
|
||||
|
||||
public class SlotCraftingStation extends SlotCrafting {
|
||||
private final IInventory matrix;
|
||||
private EntityPlayer player;
|
||||
private final EntityPlayer player;
|
||||
|
||||
public SlotCraftingStation(
|
||||
EntityPlayer par1EntityPlayer,
|
||||
|
||||
@@ -19,10 +19,10 @@ import org.lwjgl.opengl.*;
|
||||
public class FancyItemRender extends Render {
|
||||
private static final ResourceLocation field_110798_h =
|
||||
new ResourceLocation("textures/misc/enchanted_item_glint.png");
|
||||
private RenderBlocks itemRenderBlocks = new RenderBlocks();
|
||||
private final RenderBlocks itemRenderBlocks = new RenderBlocks();
|
||||
|
||||
/** The RNG used in RenderItem (for bobbing itemstacks on the ground) */
|
||||
private Random random = new Random();
|
||||
private final Random random = new Random();
|
||||
|
||||
public boolean renderWithColor = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user