mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +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
@@ -12,9 +12,9 @@ import net.minecraft.world.*;
|
||||
|
||||
public class MiningExplosion extends Explosion {
|
||||
World world;
|
||||
private Random random = new Random();
|
||||
private int field_77289_h = 16;
|
||||
private Map field_77288_k = new HashMap();
|
||||
private final Random random = new Random();
|
||||
private final int field_77289_h = 16;
|
||||
private final Map field_77288_k = new HashMap();
|
||||
|
||||
public MiningExplosion(World par1World, Entity par2Entity, double par3, double par5, double par7, float par9) {
|
||||
super(par1World, par2Entity, par3, par5, par7, par9);
|
||||
|
||||
@@ -27,7 +27,7 @@ public class OreberryBush extends BlockLeavesBase implements IPlantable {
|
||||
public String[] textureNames;
|
||||
public String[] oreTypes;
|
||||
public int itemMeat;
|
||||
private int subitems;
|
||||
private final int subitems;
|
||||
|
||||
public OreberryBush(String[] textureNames, int meta, int sub, String[] oreTypes) {
|
||||
super(Material.leaves, false);
|
||||
|
||||
@@ -8,9 +8,9 @@ import net.minecraft.world.gen.feature.WorldGenerator;
|
||||
|
||||
public class OreberryBushGen extends WorldGenerator {
|
||||
private Block blockB;
|
||||
private int metadata;
|
||||
private final int metadata;
|
||||
int chance;
|
||||
private Block[] replaceBlocks;
|
||||
private final Block[] replaceBlocks;
|
||||
|
||||
public OreberryBushGen(Block block, int meta, int chance) {
|
||||
this(
|
||||
|
||||
@@ -15,8 +15,8 @@ import tconstruct.util.config.*;
|
||||
import tconstruct.world.TinkerWorld;
|
||||
|
||||
public class SlimeIslandGen extends WorldGenerator implements IWorldGenerator {
|
||||
private Block liquidBlock;
|
||||
private int gelMeta;
|
||||
private final Block liquidBlock;
|
||||
private final int gelMeta;
|
||||
int randomness = 2;
|
||||
Random random = new Random();
|
||||
Block base = TinkerTools.craftedSoil; // Block.dirt.blockID;
|
||||
|
||||
@@ -10,15 +10,15 @@ import tconstruct.util.config.PHConstruct;
|
||||
|
||||
public class SurfaceOreGen extends WorldGenerator {
|
||||
/** The block of the ore to be placed using this generator. */
|
||||
private Block minableBlock;
|
||||
private final Block minableBlock;
|
||||
|
||||
private int minableBlockMeta = 0;
|
||||
|
||||
/** The number of blocks to generate. */
|
||||
private int numberOfBlocks;
|
||||
private final int numberOfBlocks;
|
||||
|
||||
private Block[] replaceBlocks;
|
||||
private boolean alterSize;
|
||||
private final Block[] replaceBlocks;
|
||||
private final boolean alterSize;
|
||||
|
||||
public SurfaceOreGen(Block b, int meta, int number, boolean changeSize) {
|
||||
this(
|
||||
|
||||
@@ -20,7 +20,7 @@ public class TerrainGenEventHandler {
|
||||
private final SurfaceOreGen aluminumSurface = new SurfaceOreGen(TinkerWorld.oreGravel, 4, 12, true);
|
||||
private final SurfaceOreGen cobaltSurface = new SurfaceOreGen(TinkerWorld.oreGravel, 5, 30, true);
|
||||
|
||||
private static ImmutableCollection<BiomeGenBase> EXTRA_ORE_BIOMES =
|
||||
private static final ImmutableCollection<BiomeGenBase> EXTRA_ORE_BIOMES =
|
||||
ImmutableList.of(extremeHills, extremeHillsEdge);
|
||||
|
||||
@SubscribeEvent
|
||||
|
||||
@@ -10,7 +10,7 @@ import net.minecraft.util.*;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BarricadeItem extends ItemBlock {
|
||||
private Block b;
|
||||
private final Block b;
|
||||
|
||||
public BarricadeItem(Block b) {
|
||||
super(b);
|
||||
|
||||
@@ -10,7 +10,7 @@ import tconstruct.world.entity.Crystal;
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class CrystalRender extends RenderLiving {
|
||||
/** The creeper model. */
|
||||
private ModelBase creeperModel = new CrystalModelSmall();
|
||||
private final ModelBase creeperModel = new CrystalModelSmall();
|
||||
|
||||
public CrystalRender() {
|
||||
super(new CrystalModelSmall(), 0.5F);
|
||||
|
||||
@@ -13,7 +13,7 @@ import tconstruct.world.entity.SlimeBase;
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class SlimeRender extends RenderLiving {
|
||||
static final ResourceLocation texture = new ResourceLocation("tinker", "textures/mob/slimeedible.png");
|
||||
private ModelBase scaleAmount;
|
||||
private final ModelBase scaleAmount;
|
||||
|
||||
public SlimeRender(ModelBase par1ModelBase, ModelBase par2ModelBase, float par3) {
|
||||
super(par1ModelBase, par3);
|
||||
|
||||
Reference in new issue
Block a user