diff options
author | LOKKO12 <33183715+LOKKO12@users.noreply.github.com> | 2018-01-22 18:56:12 +0100 |
---|---|---|
committer | LOKKO12 <33183715+LOKKO12@users.noreply.github.com> | 2018-01-22 18:56:12 +0100 |
commit | 9066c13deea8a77c3e4828b4fcddf7cf0a096a74 (patch) | |
tree | a0f4ac442e59b1056b260d03e0c17b771470fae7 /src/main/java/pers/gwyog/gtneioreplugin/util/GT6OreSmallHelper.java | |
parent | 2bfa55842458c092acb599fd4876a74386680b0f (diff) | |
download | GT5-Unofficial-9066c13deea8a77c3e4828b4fcddf7cf0a096a74.tar.gz GT5-Unofficial-9066c13deea8a77c3e4828b4fcddf7cf0a096a74.tar.bz2 GT5-Unofficial-9066c13deea8a77c3e4828b4fcddf7cf0a096a74.zip |
- removed GT6 support
- removed IE support
- removed biome specific vein support
- removed ShowAll button due to Memory Issures
- fixed %material
- try to read out config without modifying it
- added Coustom Vein renamer
Diffstat (limited to 'src/main/java/pers/gwyog/gtneioreplugin/util/GT6OreSmallHelper.java')
-rw-r--r-- | src/main/java/pers/gwyog/gtneioreplugin/util/GT6OreSmallHelper.java | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/util/GT6OreSmallHelper.java b/src/main/java/pers/gwyog/gtneioreplugin/util/GT6OreSmallHelper.java deleted file mode 100644 index 873f049856..0000000000 --- a/src/main/java/pers/gwyog/gtneioreplugin/util/GT6OreSmallHelper.java +++ /dev/null @@ -1,87 +0,0 @@ -package pers.gwyog.gtneioreplugin.util; - -import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import gregapi.block.IBlockPlacable; -import gregapi.block.prefixblock.PrefixBlock; -import gregapi.data.CS; -import gregapi.data.OP; -import gregapi.oredict.OreDictMaterial; -import gregapi.worldgen.WorldgenObject; -import gregapi.worldgen.Worldgen_GT_Ore_SmallPieces; -import gregapi.worldgen.Worldgenerator; -import net.minecraft.item.ItemStack; -import pers.gwyog.gtneioreplugin.GTNEIOrePlugin; - -public class GT6OreSmallHelper { - public static List<ItemStack> oreSmallList = new ArrayList<ItemStack>(); - public static HashMap<String, OreSmallWrapper> mapOreSmallWrapper = new HashMap<String, OreSmallWrapper>(); - public static HashMap<String, Short> mapOreDropUnlocalizedNameToOreMeta = new HashMap<String, Short>(); - public static HashMap<Short, List<ItemStack>> mapOreMetaToOreDrops = new HashMap<Short, List<ItemStack>>(); - public static Set<PrefixBlock> setOreSmallBasicTypes = new HashSet<PrefixBlock>(); - - public GT6OreSmallHelper() { - ItemStack stack; - OreDictMaterial material; - PrefixBlock oreSmall = CS.BlocksGT.oreSmall; - short meta; - for (WorldgenObject worldGen : Worldgenerator.sWorldgenList) - if (worldGen.mWorldGenName.startsWith("ore.small.") && worldGen instanceof Worldgen_GT_Ore_SmallPieces) { - Worldgen_GT_Ore_SmallPieces worldGenSmallPieces = (Worldgen_GT_Ore_SmallPieces)worldGen; - meta = worldGenSmallPieces.mMeta; - material = oreSmall.getMetaMaterial(meta); - mapOreSmallWrapper.put(worldGen.mWorldGenName, new OreSmallWrapper(worldGenSmallPieces)); - if (!mapOreMetaToOreDrops.keySet().contains(meta)) { - List<ItemStack> stackList = new ArrayList<ItemStack>(); - stack = OP.gemExquisite.mat(material, OP.gem.mat(material, 1L), 1L); - if (stack != null && !mapOreDropUnlocalizedNameToOreMeta.keySet().contains(stack.getUnlocalizedName())) {mapOreDropUnlocalizedNameToOreMeta.put(stack.getUnlocalizedName(), meta);stackList.add(stack);} - stack = OP.gemFlawless.mat(material, OP.gem.mat(material, 1L), 1L); - if (stack != null && !mapOreDropUnlocalizedNameToOreMeta.keySet().contains(stack.getUnlocalizedName())) {mapOreDropUnlocalizedNameToOreMeta.put(stack.getUnlocalizedName(), meta);stackList.add(stack);} - stack = OP.gem.mat(material, 1L); - if (stack != null && !mapOreDropUnlocalizedNameToOreMeta.keySet().contains(stack.getUnlocalizedName())) {mapOreDropUnlocalizedNameToOreMeta.put(stack.getUnlocalizedName(), meta);stackList.add(stack);} - stack = OP.gemFlawed.mat(material, OP.crushed.mat(material, 1L), 1L); - if (stack != null && !mapOreDropUnlocalizedNameToOreMeta.keySet().contains(stack.getUnlocalizedName())) {mapOreDropUnlocalizedNameToOreMeta.put(stack.getUnlocalizedName(), meta);stackList.add(stack);} - stack = OP.crushed.mat(material, 1L); - if (stack != null && !mapOreDropUnlocalizedNameToOreMeta.keySet().contains(stack.getUnlocalizedName())) {mapOreDropUnlocalizedNameToOreMeta.put(stack.getUnlocalizedName(), meta);stackList.add(stack);} - stack = OP.gemChipped.mat(material, OP.dustImpure.mat(material, 1L), 1L); - if (stack != null && !mapOreDropUnlocalizedNameToOreMeta.keySet().contains(stack.getUnlocalizedName())) {mapOreDropUnlocalizedNameToOreMeta.put(stack.getUnlocalizedName(), meta);stackList.add(stack);} - stack = OP.dustImpure.mat(material, OP.dust.mat(material, 1L), 1L); - if (stack != null && !mapOreDropUnlocalizedNameToOreMeta.keySet().contains(stack.getUnlocalizedName())) {mapOreDropUnlocalizedNameToOreMeta.put(stack.getUnlocalizedName(), meta);stackList.add(stack);} - stack = OP.gemLegendary.mat(material, 1L); - if (stack != null && !mapOreDropUnlocalizedNameToOreMeta.keySet().contains(stack.getUnlocalizedName())) {mapOreDropUnlocalizedNameToOreMeta.put(stack.getUnlocalizedName(), meta);stackList.add(stack);} - oreSmallList.add(new ItemStack(oreSmall, 1, meta)); - mapOreMetaToOreDrops.put(meta, stackList); - } - Set<IBlockPlacable> setSmallOreBasicTypesTemp = new HashSet<IBlockPlacable>(CS.BlocksGT.stoneToSmallOres.values()); - for (IBlockPlacable block: setSmallOreBasicTypesTemp) - if (block instanceof PrefixBlock) - setOreSmallBasicTypes.add((PrefixBlock)block); - } - } - - public class OreSmallWrapper { - public String oreGenName; - public short oreMeta; - public String worldGenHeightRange; - public String amountPerChunk; - public boolean genOverworld = false; - public boolean genNether = false; - public boolean genEnd = false; - - public OreSmallWrapper(Worldgen_GT_Ore_SmallPieces worldGen) { - this.oreGenName = worldGen.mWorldGenName; - this.oreMeta = worldGen.mMeta; - this.worldGenHeightRange = worldGen.mMinY + "-" + worldGen.mMaxY; - this.amountPerChunk = worldGen.mAmount/2 + "-" + (worldGen.mAmount/2 + (worldGen.mAmount+1)/2); - this.genOverworld = worldGen.mOverworld; - this.genNether = worldGen.mNether; - this.genEnd = worldGen.mEnd; - } - } - -} |