Feature/refactoring (#207)

* Fixed deprecated I18n usage
* Code improve readability for botany.api package
* Fix naming of templateAsGenome method params
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-07-14 22:48:11 -07:00
1 parent 96fe27e834
commit 0aa9853da2
59 files changed
+236 -261

No files matched your search

@@ -47,7 +47,7 @@ public class BlockStainedDesign extends BlockDesign {
player.addExhaustion(0.005F);
if (EnchantmentHelper.getEnchantmentLevel(Enchantments.SILK_TOUCH, stack) > 0 && te instanceof TileEntityMetadata) {
java.util.List<ItemStack> items = new java.util.ArrayList<ItemStack>();
java.util.List<ItemStack> items = new java.util.ArrayList<>();
TileEntityMetadata tile = (TileEntityMetadata) te;
int damage = getDroppedMeta(state, tile.getTileMetadata());
ItemStack itemstack = TileEntityMetadata.getItemStack(this, damage);
@@ -102,6 +102,6 @@ public class ModuleCarpentry implements IInitializable {
enum Axis {
Y,
X,
Z;
Z
}
}
@@ -286,7 +286,6 @@ public enum ETTreeDefinition implements IStringSerializable, ITreeDefinition, IT
template.set(EnumTreeChromosome.YIELD, ForestryAllele.Yield.Lower.getAllele());
template.set(EnumTreeChromosome.SAPPINESS, ForestryAllele.Sappiness.Lower.getAllele());
template.set(EnumTreeChromosome.MATURATION, ForestryAllele.Maturation.Fast.getAllele());
;
}
@Override
@@ -332,7 +331,6 @@ public enum ETTreeDefinition implements IStringSerializable, ITreeDefinition, IT
template.set(EnumTreeChromosome.FRUITS, AlleleETFruit.SourCherry);
template.set(EnumTreeChromosome.YIELD, ForestryAllele.Yield.Lower.getAllele());
template.set(EnumTreeChromosome.SAPPINESS, ForestryAllele.Sappiness.Low.getAllele());
;
}
@Override
@@ -54,7 +54,6 @@ public class MultiFenceRecipeSolidWrapper extends BlankRecipeWrapper implements
for (IPlankType plankTypeSecondary : WoodManager.getAllPlankTypes()) {
for (IPlankType plankType : WoodManager.getAllPlankTypes()) {
if (plankType != plankTypeSecondary) {
;
fences.add(WoodManager.getFence(plankType, plankTypeSecondary, new FenceType(fenceType.size, false, fenceType.embossed), 1));
outputFences.add(WoodManager.getFence(plankType, plankTypeSecondary, new FenceType(fenceType.size, true, fenceType.embossed), 2));
}
@@ -47,6 +47,6 @@ public class ItemSetSquare extends Item implements IToolHammer, IItemModelRegist
public enum EnumSetSquareMode {
Rotate,
Edit,
Swap;
Swap
}
}
@@ -10,7 +10,6 @@ import binnie.core.resource.BinnieResource;
public class MachineRendererKitchen {
public static MachineRendererKitchen instance = new MachineRendererKitchen();
static int level = 0;
;
BinnieResource texture;
public void renderMachine(final Machine machine, final BinnieResource texture, final double x, final double y, final double z, final float var8) {
@@ -12,7 +12,6 @@ import binnie.extratrees.ExtraTrees;
public class MachineRendererNursery {
public static MachineRendererNursery instance = new MachineRendererNursery();
;
BinnieResource texture;
//private IModelCustom casinoMachine;
private ModelNursery model;