mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 07:56:01 +00:00
Merge branch 'master-MC1.10.2' of https://github.com/ForestryMC/Binnie into master-MC1.10.2
This commit is contained in:
commit
9f04dc7ed0
82 files changed
+207
-599
No files matched your search
@@ -8,7 +8,7 @@ import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public class CreativeTabBotany extends CreativeTabs {
|
||||
public static CreativeTabs instance;
|
||||
public static CreativeTabs instance = new CreativeTabBotany();
|
||||
|
||||
@Override
|
||||
public ItemStack getIconItemStack() {
|
||||
@@ -36,7 +36,4 @@ public class CreativeTabBotany extends CreativeTabs {
|
||||
return Item.getItemFromBlock(Blocks.YELLOW_FLOWER);
|
||||
}
|
||||
|
||||
static {
|
||||
CreativeTabBotany.instance = new CreativeTabBotany();
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ public enum EnumFlowerStage implements ISpeciesType {
|
||||
SEED("Seed"),
|
||||
POLLEN("Pollen");
|
||||
|
||||
public static final EnumFlowerStage[] VALUES;
|
||||
public static final EnumFlowerStage[] VALUES = values();
|
||||
String name;
|
||||
|
||||
EnumFlowerStage(final String name) {
|
||||
@@ -26,7 +26,4 @@ public enum EnumFlowerStage implements ISpeciesType {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
static {
|
||||
VALUES = values();
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class CeramicDesignSystem implements IDesignSystem {
|
||||
public static CeramicDesignSystem instance;
|
||||
public static CeramicDesignSystem instance = new CeramicDesignSystem();
|
||||
// Map<Integer, IIcon> primary;
|
||||
// Map<Integer, IIcon> secondary;
|
||||
|
||||
@@ -83,7 +83,4 @@ public class CeramicDesignSystem implements IDesignSystem {
|
||||
return (itemStack.getItem() == Item.getItemFromBlock(Botany.ceramic)) ? this.getMaterial(itemStack.getItemDamage()) : null;
|
||||
}
|
||||
|
||||
static {
|
||||
CeramicDesignSystem.instance = new CeramicDesignSystem();
|
||||
}
|
||||
}
|
||||
@@ -27,10 +27,10 @@ import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class Gardening {
|
||||
public static final Map<ItemStack, Integer> fertiliserAcid = new LinkedHashMap<>();
|
||||
public static final Map<ItemStack, Integer> fertiliserAlkaline = new LinkedHashMap<>();
|
||||
public static final Map<ItemStack, Integer> fertiliserNutrient = new LinkedHashMap<>();
|
||||
|
||||
public static final Map<ItemStack, Integer> fertiliserAcid = new LinkedHashMap<>();
|
||||
public static final Map<ItemStack, Integer> fertiliserAlkaline = new LinkedHashMap<>();
|
||||
public static final Map<ItemStack, Integer> fertiliserNutrient = new LinkedHashMap<>();
|
||||
|
||||
public static boolean isSoil(final Block block) {
|
||||
return block instanceof IBlockSoil;
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class ModuleGardening implements IInitializable {
|
||||
public static HashMap<ItemStack, Integer> queuedAcidFertilisers;
|
||||
public static HashMap<ItemStack, Integer> queuedAlkalineFertilisers;
|
||||
public static HashMap<ItemStack, Integer> queuedNutrientFertilisers;
|
||||
public static HashMap<ItemStack, Integer> queuedAcidFertilisers = new HashMap<>();
|
||||
public static HashMap<ItemStack, Integer> queuedAlkalineFertilisers = new HashMap<>();
|
||||
public static HashMap<ItemStack, Integer> queuedNutrientFertilisers = new HashMap<>();
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
@@ -263,9 +263,4 @@ public class ModuleGardening implements IInitializable {
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
ModuleGardening.queuedAcidFertilisers = new HashMap<>();
|
||||
ModuleGardening.queuedAlkalineFertilisers = new HashMap<>();
|
||||
ModuleGardening.queuedNutrientFertilisers = new HashMap<>();
|
||||
}
|
||||
}
|
||||
@@ -14,12 +14,12 @@ import net.minecraft.world.World;
|
||||
import java.util.*;
|
||||
|
||||
public class FlowerRoot extends SpeciesRoot implements IFlowerRoot {
|
||||
public static int flowerSpeciesCount;
|
||||
public static int flowerSpeciesCount = -1;
|
||||
static final String UID = "rootFlowers";
|
||||
public static ArrayList<IFlower> flowerTemplates;
|
||||
private static ArrayList<IFlowerMutation> flowerMutations;
|
||||
public static ArrayList<IFlower> flowerTemplates = new ArrayList<>();
|
||||
private static ArrayList<IFlowerMutation> flowerMutations = new ArrayList<>();
|
||||
Map<ItemStack, IFlower> conversions;
|
||||
private static ArrayList<IColourMix> colourMixes;
|
||||
private static ArrayList<IColourMix> colourMixes = new ArrayList<>();
|
||||
|
||||
public FlowerRoot() {
|
||||
this.conversions = new HashMap<>();
|
||||
@@ -258,12 +258,4 @@ public class FlowerRoot extends SpeciesRoot implements IFlowerRoot {
|
||||
return FlowerRoot.colourMixes;
|
||||
}
|
||||
|
||||
static {
|
||||
FlowerRoot.flowerSpeciesCount = -1;
|
||||
FlowerRoot.flowerTemplates = new ArrayList<>();
|
||||
FlowerRoot.flowerMutations = new ArrayList<>();
|
||||
FlowerRoot.colourMixes = new ArrayList<>();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -18,7 +18,7 @@ import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
|
||||
public class ModuleGenetics implements IInitializable {
|
||||
static AlleleEffectNone alleleEffectNone;
|
||||
static AlleleEffectNone alleleEffectNone = new AlleleEffectNone();
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
@@ -59,7 +59,4 @@ public class ModuleGenetics implements IInitializable {
|
||||
RecipeManagers.carpenterManager.addRecipe(100, Binnie.Liquid.getLiquidStack("water", 2000), null, new ItemStack(Botany.database), "X#X", "YEY", "RDR", '#', Blocks.GLASS_PANE, 'X', Items.GOLD_INGOT, 'Y', Items.GOLD_NUGGET, 'R', Items.REDSTONE, 'D', Items.DIAMOND, 'E', Items.EMERALD);
|
||||
}
|
||||
|
||||
static {
|
||||
ModuleGenetics.alleleEffectNone = new AlleleEffectNone();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user