1209f95bc2
Turbine items and achievements
797 lines
No EOL
68 KiB
Java
797 lines
No EOL
68 KiB
Java
package gregtech.api.enums;
|
|
|
|
import static gregtech.api.enums.GT_Values.*;
|
|
import gregtech.api.enums.TC_Aspects.TC_AspectStack;
|
|
import gregtech.api.interfaces.ICondition;
|
|
import gregtech.api.interfaces.IOreRecipeRegistrator;
|
|
import gregtech.api.interfaces.ISubTagContainer;
|
|
import gregtech.api.objects.ItemData;
|
|
import gregtech.api.objects.MaterialStack;
|
|
import gregtech.api.util.GT_Log;
|
|
import gregtech.api.util.GT_Utility;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.HashSet;
|
|
import java.util.List;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public enum OrePrefixes {
|
|
@Deprecated pulp ("Pulps" , "" , "" ,F,F,F,F,F,F,F,F,F,F, B[0]|B[1]|B[2]|B[3] , -1, 64, -1),
|
|
@Deprecated leaves ("Leaves" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
@Deprecated sapling ("Saplings" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
@Deprecated itemDust ("Dusts" , "" , "" ,F,F,F,F,F,F,F,F,F,F, B[0]|B[1]|B[2]|B[3] , -1, 64, -1),
|
|
oreBlackgranite ("Black Granite Ores" , "Granite " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // In case of an End-Ores Mod. Ore -> Material is a Oneway Operation!
|
|
oreRedgranite ("Red Granite Ores" , "Granite " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // In case of an End-Ores Mod. Ore -> Material is a Oneway Operation!
|
|
oreNetherrack ("Netherrack Ores" , "Nether " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // Prefix of the Nether-Ores Mod. Causes Ores to double. Ore -> Material is a Oneway Operation!
|
|
oreNether ("Nether Ores" , "Nether " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // Prefix of the Nether-Ores Mod. Causes Ores to double. Ore -> Material is a Oneway Operation!
|
|
@Deprecated denseore ("Dense Ores" , "" , "" ,F,F,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1),
|
|
oreDense ("Dense Ores" , "Dense " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // Prefix of the Dense-Ores Mod. Causes Ores to double. Ore -> Material is a Oneway Operation!
|
|
oreRich ("Rich Ores" , "Rich " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // Prefix of TFC
|
|
oreNormal ("Normal Ores" , "Normal " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // Prefix of TFC
|
|
oreSmall ("Small Ores" , "Small " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, 67), // Prefix of Railcraft.
|
|
orePoor ("Poor Ores" , "Poor " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // Prefix of Railcraft.
|
|
oreEndstone ("Endstone Ores" , "End " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // In case of an End-Ores Mod. Ore -> Material is a Oneway Operation!
|
|
oreEnd ("End Ores" , "End " , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1), // In case of an End-Ores Mod. Ore -> Material is a Oneway Operation!
|
|
@Deprecated oreGem ("Ores" , "" , "" ,F,F,F,F,F,T,F,F,F,T, B[3] , -1, 64, -1),
|
|
ore ("Ores" , "" , " Ore" ,T,T,F,F,F,T,F,F,F,T, B[3] , -1, 64, 68), // Regular Ore Prefix. Ore -> Material is a Oneway Operation! Introduced by Eloraam
|
|
crushedCentrifuged ("Centrifuged Ores" , "Centrifuged " , " Ore" ,T,T,F,F,F,F,F,T,F,T, B[3] , -1, 64, 7),
|
|
crushedPurified ("Purified Ores" , "Purified " , " Ore" ,T,T,F,F,F,F,F,T,F,T, B[3] , -1, 64, 6),
|
|
crushed ("Crushed Ores" , "Crushed " , " Ore" ,T,T,F,F,F,F,F,T,F,T, B[3] , -1, 64, 5),
|
|
shard ("Crystallised Shards" , "" , "" ,T,T,F,F,F,F,F,F,F,T, B[3] , -1, 64, -1), // Introduced by Mekanism
|
|
clump ("Clumps" , "" , "" ,T,T,F,F,F,F,F,F,F,T, B[3] , -1, 64, -1),
|
|
reduced ("Reduced Gravels" , "" , "" ,T,T,F,F,F,F,F,F,F,T, B[3] , -1, 64, -1),
|
|
crystalline ("Crystallised Metals" , "" , "" ,T,T,F,F,F,F,F,F,F,T, B[3] , -1, 64, -1),
|
|
cleanGravel ("Clean Gravels" , "" , "" ,T,T,F,F,F,F,F,F,F,T, B[3] , -1, 64, -1),
|
|
dirtyGravel ("Dirty Gravels" , "" , "" ,T,T,F,F,F,F,F,F,F,T, B[3] , -1, 64, -1),
|
|
ingotQuintuple ("5x Ingots" , "Quintuple " , " Ingot" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 5 , 12, 16), // A quintuple Ingot.
|
|
ingotQuadruple ("4x Ingots" , "Quadruple " , " Ingot" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 4 , 16, 15), // A quadruple Ingot.
|
|
@Deprecated ingotQuad ("4x Ingots" , "Quadruple " , " Ingot" ,F,F,F,F,F,F,F,F,F,F, B[1] , -1, 16, 15),
|
|
ingotTriple ("3x Ingots" , "Triple " , " Ingot" ,T,T,F,F,F,F,T,F,F,F, B[1] , M * 3 , 21, 14), // A triple Ingot.
|
|
ingotDouble ("2x Ingots" , "Double " , " Ingot" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 2 , 32, 13), // A double Ingot. Introduced by TerraFirmaCraft
|
|
ingotHot ("Hot Ingots" , "Hot " , " Ingot" ,T,T,F,F,F,F,F,T,F,F, B[1] , M * 1 , 16, 12), // A hot Ingot, which has to be cooled down by a Vacuum Freezer.
|
|
ingot ("Ingots" , "" , " Ingot" ,T,T,F,F,F,F,F,T,F,F, B[1] , M * 1 , 64, 11), // A regular Ingot. Introduced by Eloraam
|
|
gemChipped ("Chipped Gemstones" , "Chipped " , "" ,T,T,T,F,F,F,T,T,F,F, B[2] , M / 4 , 64, 59), // A regular Gem worth one small Dust. Introduced by TerraFirmaCraft
|
|
gemFlawed ("Flawed Gemstones" , "Flawed " , "" ,T,T,T,F,F,F,T,T,F,F, B[2] , M / 2 , 64, 60), // A regular Gem worth two small Dusts. Introduced by TerraFirmaCraft
|
|
gemFlawless ("Flawless Gemstones" , "Flawless " , "" ,T,T,T,F,F,F,T,T,F,F, B[2] , M * 2 , 32, 61), // A regular Gem worth two Dusts. Introduced by TerraFirmaCraft
|
|
gemExquisite ("Exquisite Gemstones" , "Exquisite " , "" ,T,T,T,F,F,F,T,T,F,F, B[2] , M * 4 , 16, 62), // A regular Gem worth four Dusts. Introduced by TerraFirmaCraft
|
|
gem ("Gemstones" , "" , "" ,T,T,T,F,F,F,T,T,F,F, B[2] , M * 1 , 64, 8), // A regular Gem worth one Dust. Introduced by Eloraam
|
|
@Deprecated dustDirty ("Impure Dusts" , "" , "" ,F,F,F,F,F,F,F,F,F,T, B[3] , -1, 64, 3),
|
|
dustTiny ("Tiny Dusts" , "Tiny Pile of " , " Dust" ,T,T,F,F,F,F,F,T,F,F, B[0]|B[1]|B[2]|B[3] , M / 9 , 64, 0), // 1/9th of a Dust.
|
|
dustSmall ("Small Dusts" , "Small Pile of " , " Dust" ,T,T,F,F,F,F,F,T,F,F, B[0]|B[1]|B[2]|B[3] , M / 4 , 64, 1), // 1/4th of a Dust.
|
|
dustImpure ("Impure Dusts" , "Impure Pile of " , " Dust" ,T,T,F,F,F,F,F,T,F,T, B[3] , M * 1 , 64, 3), // Dust with impurities. 1 Unit of Main Material and 1/9 - 1/4 Unit of secondary Material
|
|
dustRefined ("Refined Dusts" , "Refined Pile of " , " Dust" ,T,T,F,F,F,F,F,T,F,T, B[3] , M * 1 , 64, 2),
|
|
dustPure ("Purified Dusts" , "Purified Pile of " , " Dust" ,T,T,F,F,F,F,F,T,F,T, B[3] , M * 1 , 64, 4),
|
|
dust ("Dusts" , "" , " Dust" ,T,T,F,F,F,F,F,T,F,F, B[0]|B[1]|B[2]|B[3] , M * 1 , 64, 2), // Pure Dust worth of one Ingot or Gem. Introduced by Alblaka.
|
|
nugget ("Nuggets" , "" , " Nugget" ,T,T,F,F,F,F,F,T,F,F, B[1] , M / 9 , 64, 9), // A Nugget. Introduced by Eloraam
|
|
plateAlloy ("Alloy Plates" , "" , "" ,T,F,F,F,F,F,F,F,F,F, B[1] , -1, 64, 17), // Special Alloys have this prefix.
|
|
plateSteamcraft ("Steamcraft Plates" , "" , "" ,F,F,F,F,F,F,F,F,F,F, B[1] , -1, 64, 17),
|
|
plateDense ("Dense Plates" , "Dense " , " Plate" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 9 , 8, 22), // 9 Plates combined in one Item.
|
|
plateQuintuple ("5x Plates" , "Quintuple " , " Plate" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 5 , 12, 21),
|
|
plateQuadruple ("4x Plates" , "Quadruple " , " Plate" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 4 , 16, 20),
|
|
@Deprecated plateQuad ("4x Plates" , "" , "" ,F,F,F,F,F,F,F,F,F,F, B[1] , -1, 16, 20),
|
|
plateTriple ("3x Plates" , "Triple " , " Plate" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 3 , 21, 19),
|
|
plateDouble ("2x Plates" , "Double " , " Plate" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 2 , 32, 18),
|
|
plate ("Plates" , "" , " Plate" ,T,T,F,F,F,F,T,T,F,F, B[1]|B[2] , M * 1 , 64, 17), // Regular Plate made of one Ingot/Dust. Introduced by Calclavia
|
|
foil ("Foils" , "" , " Foil" ,T,T,F,F,F,F,T,T,F,F, B[1] , M / 4 , 64, 29), // Foil made of 1/4 Ingot/Dust.
|
|
stickLong ("Long Sticks/Rods" , "Long " , " Rod" ,T,T,F,F,F,F,T,T,F,F, B[1]|B[2] , M * 1 , 64, 54), // Stick made of an Ingot.
|
|
stick ("Sticks/Rods" , "" , " Rod" ,T,T,F,F,F,F,T,T,F,F, B[1]|B[2] , M / 2 , 64, 23), // Stick made of half an Ingot. Introduced by Eloraam
|
|
round ("Rounds" , "" , " Round" ,T,T,F,F,F,F,T,T,F,F, B[1] , M / 9 , 64, 25), // consisting out of one Nugget.
|
|
bolt ("Bolts" , "" , " Bolt" ,T,T,F,F,F,F,T,T,F,F, B[1]|B[2] , M / 8 , 64, 26), // consisting out of 1/8 Ingot or 1/4 Stick.
|
|
screw ("Screws" , "" , " Screw" ,T,T,F,F,F,F,T,T,F,F, B[1]|B[2] , M / 9 , 64, 27), // consisting out of a Bolt.
|
|
ring ("Rings" , "" , " Ring" ,T,T,F,F,F,F,T,T,F,F, B[1] , M / 4 , 64, 28), // consisting out of 1/2 Stick.
|
|
springSmall ("Small Springs" , "Small " , " Spring" ,T,T,F,F,F,F,T,T,F,F, B[1] , M / 4 , 64, 55), // consisting out of 1 Fine Wire.
|
|
spring ("Springs" , "" , " Spring" ,T,T,F,F,F,F,T,T,F,F, B[1] , M * 1 , 64, 56), // consisting out of 2 Sticks.
|
|
wireFine ("Fine Wires" , "Fine " , " Wire" ,T,T,F,F,F,F,T,T,F,F, B[1] , M / 8 , 64, 51), // consisting out of 1/8 Ingot or 1/4 Wire.
|
|
rotor ("Rotors" , "" , " Rotor" ,T,T,F,F,F,F,T,T,F,F, B[7] ,M*4+M/4+M/9,16, 53), // consisting out of 4 Plates, 1 Ring and 1 Screw.
|
|
gearGtSmall ("Small Gears" , "Small " , " Gear" ,T,T,F,F,F,F,T,T,F,F, B[7] , M * 1 , 64, 52),
|
|
gearGt ("Gears" , "" , " Gear" ,T,T,F,F,F,F,T,T,F,F, B[7] , M * 4 , 16, 63), // Introduced by me because BuildCraft has ruined the gear Prefix...
|
|
lens ("Lenses" , "" , " Lens" ,T,T,F,F,F,F,T,T,F,F, B[2] ,(M * 3)/ 4, 64, 24), // 3/4 of a Plate or Gem used to shape a Lense. Normally only used on Transparent Materials.
|
|
crateGtDust ("Crates of Dust" , "Crate of " , " Dust" ,T,T,F,T,F,F,F,T,F,F, B[0]|B[1]|B[2]|B[3] , -1, 64, 96), // consisting out of 16 Dusts.
|
|
crateGtPlate ("Crates of Plates" , "Crate of " , " Plate" ,T,T,F,T,F,F,F,T,F,F, B[1]|B[2] , -1, 64, 99), // consisting out of 16 Plates.
|
|
crateGtIngot ("Crates of Ingots" , "Crate of " , " Ingot" ,T,T,F,T,F,F,F,T,F,F, B[1] , -1, 64, 97), // consisting out of 16 Ingots.
|
|
crateGtGem ("Crates of Gems" , "Crate of " , " Gem" ,T,T,F,T,F,F,F,T,F,F, B[2] , -1, 64, 98), // consisting out of 16 Gems.
|
|
cellPlasma ("Cells of Plasma" , "" , " Plasma Cell" ,T,T,T,T,F,F,F,T,F,F, B[5] , M * 1 , 64, 31), // Hot Cell full of Plasma, which can be used in the Plasma Generator.
|
|
cell ("Cells" , "" , " Cell" ,T,T,T,T,F,F,T,T,F,F, B[4]|B[8] , M * 1 , 64, 30), // Regular Gas/Fluid Cell. Introduced by Calclavia
|
|
bucket ("Buckets" , "" , " Bucket" ,T,T,T,T,F,F,T,F,F,F, B[4]|B[8] , M * 1 , 16, -1), // A vanilla Iron Bucket filled with the Material.
|
|
bottle ("Bottles" , "" , " Bottle" ,T,T,T,T,F,F,F,F,F,F, B[4]|B[8] , -1, 16, -1), // Glass Bottle containing a Fluid.
|
|
capsule ("Capsules" , "" , " Capsule" ,F,T,T,T,F,F,F,F,F,F, B[4]|B[8] , M * 1 , 16, -1),
|
|
crystal ("Crystals" , "" , " Crystal" ,F,T,F,F,F,F,T,F,F,F, B[2] , M * 1 , 64, -1),
|
|
bulletGtSmall ("Small Bullets" , "Small " , " Bullet" ,T,T,F,F,T,F,T,F,T,F, B[6]|B[8] , M / 9 , 64, -1),
|
|
bulletGtMedium ("Medium Bullets" , "Medium " , " Bullet" ,T,T,F,F,T,F,T,F,T,F, B[6]|B[8] , M / 6 , 64, -1),
|
|
bulletGtLarge ("Large Bullets" , "Large " , " Bullet" ,T,T,F,F,T,F,T,F,T,F, B[6]|B[8] , M / 3 , 64, -1),
|
|
arrowGtWood ("Regular Arrows" , "" , " Arrow" ,T,T,F,F,T,F,T,F,T,F, B[6] , M / 4 , 64, 57), // Arrow made of 1/4 Ingot/Dust + Wooden Stick.
|
|
arrowGtPlastic ("Light Arrows" , "Light " , " Arrow" ,T,T,F,F,T,F,T,F,T,F, B[6] , M / 4 , 64, 58), // Arrow made of 1/4 Ingot/Dust + Plastic Stick.
|
|
arrow ("Arrows" , "" , "" ,F,F,T,F,F,F,F,F,T,F, B[6] , -1, 64, 57),
|
|
toolHeadArrow ("Arrow Heads" , "" , " Arrow Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M / 4 , 64, 46), // consisting out of 1/4 Ingot.
|
|
toolHeadSword ("Sword Blades" , "" , " Sword Blade" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 2 , 16, 32), // consisting out of 2 Ingots.
|
|
toolHeadPickaxe ("Pickaxe Heads" , "" , " Pickaxe Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 3 , 16, 33), // consisting out of 3 Ingots.
|
|
toolHeadShovel ("Shovel Heads" , "" , " Shovel Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 1 , 16, 34), // consisting out of 1 Ingots.
|
|
toolHeadUniversalSpade ("Universal Spade Heads" , "" , " Universal Spade Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 1 , 16, 43), // consisting out of 1 Ingots.
|
|
toolHeadAxe ("Axe Heads" , "" , " Axe Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 3 , 16, 35), // consisting out of 3 Ingots.
|
|
toolHeadHoe ("Hoe Heads" , "" , " Hoe Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 2 , 16, 36), // consisting out of 2 Ingots.
|
|
toolHeadSense ("Sense Blades" , "" , " Sense Blade" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 3 , 16, 44), // consisting out of 3 Ingots.
|
|
toolHeadFile ("File Heads" , "" , " File Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 2 , 16, 38), // consisting out of 2 Ingots.
|
|
toolHeadHammer ("Hammer Heads" , "" , " Hammer Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 6 , 16, 37), // consisting out of 6 Ingots.
|
|
toolHeadPlow ("Plow Heads" , "" , " Plow Head" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 4 , 16, 45), // consisting out of 4 Ingots.
|
|
toolHeadSaw ("Saw Blades" , "" , " Saw Blade" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 2 , 16, 39), // consisting out of 2 Ingots.
|
|
toolHeadBuzzSaw ("Buzzsaw Blades" , "" , " Buzzsaw Blade" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 4 , 16, 48), // consisting out of 4 Ingots.
|
|
toolHeadScrewdriver ("Screwdriver Tips" , "" , " Screwdriver Tip" ,T,T,F,F,F,F,T,F,F,F, B[6] , M * 1 , 16, 47), // consisting out of 1 Ingots.
|
|
toolHeadDrill ("Drill Tips" , "" , " Drill Tip" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 4 , 16, 40), // consisting out of 4 Ingots.
|
|
toolHeadChainsaw ("Chainsaw Tips" , "" , " Chainsaw Tip" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 2 , 16, 41), // consisting out of 2 Ingots.
|
|
toolHeadWrench ("Wrench Tips" , "" , " Wrench Tip" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 4 , 16, 42), // consisting out of 4 Ingots.
|
|
turbineBlade ("Turbine Blades" , "" , " Turbine Blade" ,T,T,F,F,F,F,T,T,F,F, B[6] , M * 6 , 64, 100), // consisting out of 6 Ingots.
|
|
toolSword ("Swords" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 2 , 1, -1), // vanilly Sword
|
|
toolPickaxe ("Pickaxes" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 3 , 1, -1), // vanilly Pickaxe
|
|
toolShovel ("Shovels" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 1 , 1, -1), // vanilly Shovel
|
|
toolAxe ("Axes" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 3 , 1, -1), // vanilly Axe
|
|
toolHoe ("Hoes" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 2 , 1, -1), // vanilly Hoe
|
|
toolShears ("Shears" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 2 , 1, -1), // vanilly Shears
|
|
tool ("Tools" , "" , "" ,F,F,F,F,F,F,F,F,T,F, B[6] , -1, 1, -1), // toolPot, toolSkillet, toolSaucepan, toolBakeware, toolCuttingboard, toolMortarandpestle, toolMixingbowl, toolJuicer
|
|
compressedCobblestone ("9^X Compressed Cobblestones" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
compressedStone ("9^X Compressed Stones" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
compressedDirt ("9^X Compressed Dirt" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
compressedGravel ("9^X Compressed Gravel" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
compressedSand ("9^X Compressed Sand" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
compressed ("Compressed Materials" , "Compressed " , "" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 2 , 64, -1), // Compressed Material, worth 1 Unit. Introduced by Galacticraft
|
|
glass ("Glasses" , "" , "" ,F,F,T,F,T,F,F,F,F,F, 0 , -1, 64, -1),
|
|
paneGlass ("Glass Panes" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1),
|
|
blockGlass ("Glass Blocks" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1),
|
|
blockWool ("Wool Blocks" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1),
|
|
block_ ("Random Blocks" , "" , "" ,F,F,F,F,F,T,F,F,F,F, 0 , -1, 64, -1), // IGNORE
|
|
block ("Storage Blocks" , "Block of " , "" ,T,T,F,F,F,T,T,F,F,F, 0 , M * 9 , 64, 71), // Storage Block consisting out of 9 Ingots/Gems/Dusts. Introduced by CovertJaguar
|
|
craftingTool ("Crafting Tools" , "" , "" ,F,F,F,F,F,F,F,F,T,F, 0 , -1, 64, -1), // Special Prefix used mainly for the Crafting Handler.
|
|
crafting ("Crafting Ingredients" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Special Prefix used mainly for the Crafting Handler.
|
|
craft ("Crafting Stuff?" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Special Prefix used mainly for the Crafting Handler.
|
|
log ("Logs" , "" , "" ,F,F,F,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Prefix used for Logs. Usually as "logWood". Introduced by Eloraam
|
|
slab ("Slabs" , "" , "" ,F,F,F,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Prefix used for Slabs. Usually as "slabWood" or "slabStone". Introduced by SirSengir
|
|
stair ("Stairs" , "" , "" ,F,F,F,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Prefix used for Stairs. Usually as "stairWood" or "stairStone". Introduced by SirSengir
|
|
fence ("Fences" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Prefix used for Fences. Usually as "fenceWood". Introduced by Forge
|
|
plank ("Planks" , "" , "" ,F,F,F,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Prefix for Planks. Usually "plankWood". Introduced by Eloraam
|
|
treeSapling ("Saplings" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Prefix for Saplings.
|
|
treeLeaves ("Leaves" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Prefix for Leaves.
|
|
tree ("Tree Parts" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Prefix for Tree Parts.
|
|
stoneCobble ("Cobblestones" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Cobblestone Prefix for all Cobblestones.
|
|
stoneSmooth ("Smoothstones" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Smoothstone Prefix.
|
|
stoneMossyBricks ("mossy Stone Bricks" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Mossy Stone Bricks.
|
|
stoneMossy ("Mossy Stones" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Mossy Cobble.
|
|
@Deprecated stoneBricksMossy("Mossy Stone Bricks" , "" , "" ,F,F,F,F,F,T,F,F,F,F, 0 , -1, 64, -1),
|
|
stoneBricks ("Stone Bricks" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Stone Bricks.
|
|
@Deprecated stoneBrick ("Stone Bricks" , "" , "" ,F,F,F,F,F,T,F,F,F,F, 0 , -1, 64, -1),
|
|
stoneCracked ("Cracked Stones" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Cracked Bricks.
|
|
stoneChiseled ("Chiseled Stones" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Chiseled Stone.
|
|
stone ("Stones" , "" , "" ,F,T,T,F,T,T,F,F,F,F, 0 , -1, 64, -1), // Prefix to determine which kind of Rock this is.
|
|
cobblestone ("Cobblestones" , "" , "" ,F,T,T,F,F,T,F,F,F,F, 0 , -1, 64, -1),
|
|
rock ("Rocks" , "" , "" ,F,T,T,F,T,T,F,F,F,F, 0 , -1, 64, -1), // Prefix to determine which kind of Rock this is.
|
|
record ("Records" , "" , "" ,F,F,T,F,F,F,F,F,F,F, 0 , -1, 1, -1),
|
|
rubble ("Rubbles" , "" , "" ,T,T,T,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
scraps ("Scraps" , "" , "" ,T,T,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
scrap ("Scraps" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
item_ ("Items" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // IGNORE
|
|
item ("Items" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Random Item. Introduced by Alblaka
|
|
book ("Books" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Used for Books of any kind.
|
|
paper ("Papers" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Used for Papers of any kind.
|
|
dye ("Dyes" , "" , "" ,F,F,T,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Used for the 16 dyes. Introduced by Eloraam
|
|
stainedClay ("Stained Clays" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1), // Used for the 16 colors of Stained Clay. Introduced by Forge
|
|
armorHelmet ("Helmets" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 5 , 1, -1), // vanilly Helmet
|
|
armorChestplate ("Chestplates" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 8 , 1, -1), // vanilly Chestplate
|
|
armorLeggings ("Leggings" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 7 , 1, -1), // vanilly Pants
|
|
armorBoots ("Boots" , "" , "" ,F,T,F,F,F,F,T,F,T,F, B[6] , M * 4 , 1, -1), // vanilly Boots
|
|
armor ("Armor Parts" , "" , "" ,F,F,F,F,F,F,F,F,T,F, B[6] , -1, 1, -1),
|
|
frameGt ("Frame Boxes" , "" , "" ,T,T,F,F,T,F,T,F,F,F, 0 , M * 2 , 64, 83),
|
|
pipeTiny ("Tiny Pipes" , "Tiny " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M / 2 , 64, 78),
|
|
pipeSmall ("Small Pipes" , "Small " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M * 1 , 64, 79),
|
|
pipeMedium ("Medium Pipes" , "Medium " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M * 3 , 64, 80),
|
|
pipeLarge ("Large pipes" , "Large " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M * 6 , 64, 81),
|
|
pipeHuge ("Huge Pipes" , "Huge " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M *12 , 64, 82),
|
|
pipeRestrictiveTiny ("Tiny Restrictive Pipes" , "Tiny Restrictive " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M / 2 , 64, 78),
|
|
pipeRestrictiveSmall ("Small Restrictive Pipes" , "Small Restrictive " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M * 1 , 64, 79),
|
|
pipeRestrictiveMedium ("Medium Restrictive Pipes" , "Medium Restrictive " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M * 3 , 64, 80),
|
|
pipeRestrictiveLarge ("Large Restrictive Pipes" , "Large Restrictive " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M * 6 , 64, 81),
|
|
pipeRestrictiveHuge ("Huge Restrictive Pipes" , "Huge Restrictive " , " Pipe" ,T,T,F,F,T,F,T,F,F,F, 0 , M *12 , 64, 82),
|
|
pipe ("Pipes" , "" , " Pipe" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, 77),
|
|
wireGt16 ("16x Wires" , "16x " , " Wire" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 8 , 64, -1),
|
|
wireGt12 ("12x Wires" , "12x " , " Wire" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 6 , 64, -1),
|
|
wireGt08 ("8x Wires" , "8x " , " Wire" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 4 , 64, -1),
|
|
wireGt04 ("4x Wires" , "4x " , " Wire" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 2 , 64, -1),
|
|
wireGt02 ("2x Wires" , "2x " , " Wire" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 1 , 64, -1),
|
|
wireGt01 ("1x Wires" , "1x " , " Wire" ,T,T,F,F,F,F,T,F,F,F, 0 , M / 2 , 64, -1),
|
|
cableGt12 ("12x Cables" , "12x " , " Cable" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 6 , 64, -1),
|
|
cableGt08 ("8x Cables" , "8x " , " Cable" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 4 , 64, -1),
|
|
cableGt04 ("4x Cables" , "4x " , " Cable" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 2 , 64, -1),
|
|
cableGt02 ("2x Cables" , "2x " , " Cable" ,T,T,F,F,F,F,T,F,F,F, 0 , M * 1 , 64, -1),
|
|
cableGt01 ("1x Cables" , "1x " , " Cable" ,T,T,F,F,F,F,T,F,F,F, 0 , M / 2 , 64, -1),
|
|
|
|
/* Electric Components.
|
|
*
|
|
* usual Materials for this are:
|
|
* Primitive (Tier 1)
|
|
* Basic (Tier 2) as used by UE as well : IC2 Circuit and RE-Battery
|
|
* Good (Tier 3)
|
|
* Advanced (Tier 4) as used by UE as well : Advanced Circuit, Advanced Battery and Lithium Battery
|
|
* Data (Tier 5) : Data Storage Circuit
|
|
* Elite (Tier 6) as used by UE as well : Energy Crystal and Data Control Circuit
|
|
* Master (Tier 7) : Energy Flow Circuit and Lapotron Crystal
|
|
* Ultimate (Tier 8) : Data Orb and Lapotronic Energy Orb
|
|
* Infinite (Cheaty)
|
|
*/
|
|
batterySingleuse ("Single Use Batteries" , "" , "" ,F,T,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
battery ("Reusable Batteries" , "" , "" ,F,T,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Introduced by Calclavia
|
|
circuit ("Circuits" , "" , "" ,T,T,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Introduced by Calclavia
|
|
computer ("Computers" , "" , "" ,T,T,F,F,T,F,F,F,F,F, 0 , -1, 64, -1), // A whole Computer. "computerMaster" = ComputerCube
|
|
|
|
// random known prefixes without special abilities.
|
|
skull ("Skulls" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
plating ("Platings" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
dinosaur ("Dinosaurs" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
travelgear ("Travel Gear" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
bauble ("Baubles" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
cluster ("Clusters" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
grafter ("Grafters" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
scoop ("Scoops" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
frame ("Frames" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
tome ("Tomes" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
junk ("Junk" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
bee ("Bees" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
rod ("Rods" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
dirt ("Dirts" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
sand ("Sands" , "" , "" ,F,F,T,F,F,T,F,F,F,F, 0 , -1, 64, -1),
|
|
grass ("Grasses" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
gravel ("Gravels" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
mushroom ("Mushrooms" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
wood ("Woods" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Introduced by Eloraam
|
|
drop ("Drops" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
fuel ("Fuels" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
panel ("Panels" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
brick ("Bricks" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
chunk ("Chunks" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
wire ("Wires" , "" , "" ,F,F,F,F,T,F,F,F,F,F, 0 , -1, 64, -1),
|
|
seed ("Seeds" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
reed ("Reeds" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
sheetDouble ("2x Sheets" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
sheet ("Sheets" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
crop ("Crops" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
plant ("Plants" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
coin ("Coins" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
lumar ("Lumars" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
ground ("Grounded Stuff" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
cable ("Cables" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
component ("Components" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
wax ("Waxes" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
wall ("Walls" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
tube ("Tubes" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
list ("Lists" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
food ("Foods" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
gear ("Gears" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1), // Introduced by SirSengir
|
|
coral ("Corals" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
flower ("Flowers" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
storage ("Storages" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
material ("Materials" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
plasma ("Plasmas" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
element ("Elements" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
molecule ("Molecules" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
wafer ("Wafers" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
orb ("Orbs" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
handle ("Handles" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
blade ("Blades" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
head ("Heads" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
motor ("Motors" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
bit ("Bits" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
shears ("Shears" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
turbine ("Turbines" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
fertilizer ("Fertilizers" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
chest ("Chests" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
raw ("Raw Things" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
stainedGlass ("Stained Glasses" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
mystic ("Mystic Stuff" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
mana ("Mana Stuff" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
rune ("Runes" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
petal ("Petals" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
pearl ("Pearls" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
powder ("Powders" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
soulsand ("Soulsands" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
obsidian ("Obsidians" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
glowstone ("Glowstones" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
beans ("Beans" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
br ("br" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
essence ("Essences" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
alloy ("Alloys" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
cooking ("Cooked Things" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
elven ("Elven Stuff" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
reactor ("Reactors" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
mffs ("MFFS" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
projred ("Project Red" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
ganys ("Ganys Stuff" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
liquid ("Liquids" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
bars ("Bars" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1),
|
|
bar ("Bars" , "" , "" ,F,F,F,F,F,F,F,F,F,F, 0 , -1, 64, -1);
|
|
|
|
static {
|
|
pulp.mPrefixInto = dust;
|
|
oreGem.mPrefixInto = ore;
|
|
leaves.mPrefixInto = treeLeaves;
|
|
sapling.mPrefixInto = treeSapling;
|
|
itemDust.mPrefixInto = dust;
|
|
dustDirty.mPrefixInto = dustImpure;
|
|
denseore.mPrefixInto = oreDense;
|
|
ingotQuad.mPrefixInto = ingotQuadruple;
|
|
plateQuad.mPrefixInto = plateQuadruple;
|
|
stoneBrick.mPrefixInto = stoneBricks;
|
|
stoneBricksMossy.mPrefixInto = stoneMossyBricks;
|
|
|
|
ingotHot.mHeatDamage = 3.0F;
|
|
cellPlasma.mHeatDamage = 6.0F;
|
|
|
|
block.ignoreMaterials(Materials.Ice, Materials.Snow, Materials.Concrete, Materials.Glass, Materials.Glowstone, Materials.DarkIron, Materials.Marble, Materials.Quartz, Materials.CertusQuartz, Materials.Limestone);
|
|
ingot.ignoreMaterials(Materials.Brick, Materials.NetherBrick);
|
|
|
|
dust.addFamiliarPrefix(dustTiny);
|
|
dust.addFamiliarPrefix(dustSmall);
|
|
dustTiny.addFamiliarPrefix(dust);
|
|
dustTiny.addFamiliarPrefix(dustSmall);
|
|
dustSmall.addFamiliarPrefix(dust);
|
|
dustSmall.addFamiliarPrefix(dustTiny);
|
|
|
|
ingot.addFamiliarPrefix(nugget);
|
|
nugget.addFamiliarPrefix(ingot);
|
|
|
|
for (OrePrefixes tPrefix1 : values()) if (tPrefix1.name().startsWith("ore" )) for (OrePrefixes tPrefix2 : values()) if (tPrefix2.name().startsWith("ore" )) tPrefix1.addFamiliarPrefix(tPrefix2);
|
|
for (OrePrefixes tPrefix1 : values()) if (tPrefix1.name().startsWith("pipe" )) for (OrePrefixes tPrefix2 : values()) if (tPrefix2.name().startsWith("pipe" )) tPrefix1.addFamiliarPrefix(tPrefix2);
|
|
for (OrePrefixes tPrefix1 : values()) if (tPrefix1.name().startsWith("wireGt" )) for (OrePrefixes tPrefix2 : values()) if (tPrefix2.name().startsWith("wireGt" )) tPrefix1.addFamiliarPrefix(tPrefix2);
|
|
for (OrePrefixes tPrefix1 : values()) if (tPrefix1.name().startsWith("cableGt" )) for (OrePrefixes tPrefix2 : values()) if (tPrefix2.name().startsWith("cableGt" )) tPrefix1.addFamiliarPrefix(tPrefix2);
|
|
|
|
// These are only the important ones.
|
|
gem .mNotGeneratedItems.add(Materials.Coal);
|
|
gem .mNotGeneratedItems.add(Materials.Charcoal);
|
|
gem .mNotGeneratedItems.add(Materials.NetherStar);
|
|
gem .mNotGeneratedItems.add(Materials.Diamond);
|
|
gem .mNotGeneratedItems.add(Materials.Emerald);
|
|
gem .mNotGeneratedItems.add(Materials.NetherQuartz);
|
|
gem .mNotGeneratedItems.add(Materials.EnderPearl);
|
|
gem .mNotGeneratedItems.add(Materials.EnderEye);
|
|
gem .mNotGeneratedItems.add(Materials.Flint);
|
|
gem .mNotGeneratedItems.add(Materials.Lapis);
|
|
dust .mNotGeneratedItems.add(Materials.Bone);
|
|
dust .mNotGeneratedItems.add(Materials.Redstone);
|
|
dust .mNotGeneratedItems.add(Materials.Glowstone);
|
|
dust .mNotGeneratedItems.add(Materials.Gunpowder);
|
|
dust .mNotGeneratedItems.add(Materials.Sugar);
|
|
dust .mNotGeneratedItems.add(Materials.Blaze);
|
|
stick .mNotGeneratedItems.add(Materials.Wood);
|
|
stick .mNotGeneratedItems.add(Materials.Bone);
|
|
stick .mNotGeneratedItems.add(Materials.Blaze);
|
|
ingot .mNotGeneratedItems.add(Materials.Iron);
|
|
ingot .mNotGeneratedItems.add(Materials.Gold);
|
|
ingot .mNotGeneratedItems.add(Materials.Brick);
|
|
ingot .mNotGeneratedItems.add(Materials.BrickNether);
|
|
ingot .mNotGeneratedItems.add(Materials.WoodSealed);
|
|
ingot .mNotGeneratedItems.add(Materials.Wood);
|
|
nugget .mNotGeneratedItems.add(Materials.Gold);
|
|
plate .mNotGeneratedItems.add(Materials.Paper);
|
|
cell .mNotGeneratedItems.add(Materials.Empty);
|
|
cell .mNotGeneratedItems.add(Materials.Water);
|
|
cell .mNotGeneratedItems.add(Materials.Lava);
|
|
cell .mNotGeneratedItems.add(Materials.ConstructionFoam);
|
|
cell .mNotGeneratedItems.add(Materials.UUMatter);
|
|
cell .mNotGeneratedItems.add(Materials.BioFuel);
|
|
cell .mNotGeneratedItems.add(Materials.CoalFuel);
|
|
bucket .mNotGeneratedItems.add(Materials.Empty);
|
|
bucket .mNotGeneratedItems.add(Materials.Lava);
|
|
bucket .mNotGeneratedItems.add(Materials.Milk);
|
|
bucket .mNotGeneratedItems.add(Materials.Water);
|
|
bottle .mNotGeneratedItems.add(Materials.Empty);
|
|
bottle .mNotGeneratedItems.add(Materials.Water);
|
|
bottle .mNotGeneratedItems.add(Materials.Milk);
|
|
block .mNotGeneratedItems.add(Materials.Iron);
|
|
block .mNotGeneratedItems.add(Materials.Gold);
|
|
block .mNotGeneratedItems.add(Materials.Lapis);
|
|
block .mNotGeneratedItems.add(Materials.Emerald);
|
|
block .mNotGeneratedItems.add(Materials.Redstone);
|
|
block .mNotGeneratedItems.add(Materials.Diamond);
|
|
block .mNotGeneratedItems.add(Materials.Coal);
|
|
toolHeadArrow .mNotGeneratedItems.add(Materials.Glass);
|
|
|
|
//-----
|
|
|
|
dustImpure .mGeneratedItems.add(Materials.GraniteRed);
|
|
dustImpure .mGeneratedItems.add(Materials.GraniteBlack);
|
|
dustImpure .mGeneratedItems.add(Materials.Quartzite);
|
|
dustImpure .mGeneratedItems.add(Materials.Flint);
|
|
dustImpure .mGeneratedItems.add(Materials.Redrock);
|
|
dustImpure .mGeneratedItems.add(Materials.Basalt);
|
|
dustImpure .mGeneratedItems.add(Materials.Marble);
|
|
dustImpure .mGeneratedItems.add(Materials.Netherrack);
|
|
dustImpure .mGeneratedItems.add(Materials.Endstone);
|
|
dustImpure .mGeneratedItems.add(Materials.Stone);
|
|
|
|
plate .mGeneratedItems.add(Materials.Redstone);
|
|
plate .mGeneratedItems.add(Materials.Concrete);
|
|
plate .mGeneratedItems.add(Materials.GraniteRed);
|
|
plate .mGeneratedItems.add(Materials.GraniteBlack);
|
|
plate .mGeneratedItems.add(Materials.Glowstone);
|
|
plate .mGeneratedItems.add(Materials.Nikolite);
|
|
plate .mGeneratedItems.add(Materials.Obsidian);
|
|
|
|
plate .mGeneratedItems.add(Materials.Paper);
|
|
plateDouble .mGeneratedItems.add(Materials.Paper);
|
|
plateTriple .mGeneratedItems.add(Materials.Paper);
|
|
plateQuadruple .mGeneratedItems.add(Materials.Paper);
|
|
plateQuintuple .mGeneratedItems.add(Materials.Paper);
|
|
|
|
lens .mGeneratedItems.add(Materials.EnderPearl);
|
|
lens .mGeneratedItems.add(Materials.EnderEye);
|
|
|
|
stickLong .mGeneratedItems.add(Materials.Blaze);
|
|
|
|
//-----
|
|
|
|
dust .mGeneratedItems.addAll(dustPure.mGeneratedItems);
|
|
dust .mGeneratedItems.addAll(dustImpure.mGeneratedItems);
|
|
dust .mGeneratedItems.addAll(dustRefined.mGeneratedItems);
|
|
dustTiny .mGeneratedItems.addAll(dust.mGeneratedItems);
|
|
dustSmall .mGeneratedItems.addAll(dust.mGeneratedItems);
|
|
crateGtDust .mGeneratedItems.addAll(dust.mGeneratedItems);
|
|
crateGtIngot .mGeneratedItems.addAll(ingot.mGeneratedItems);
|
|
crateGtGem .mGeneratedItems.addAll(gem.mGeneratedItems);
|
|
crateGtPlate .mGeneratedItems.addAll(plate.mGeneratedItems);
|
|
|
|
//-----
|
|
|
|
toolHeadFile .mCondition = new ICondition.And<ISubTagContainer>(new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING), new ICondition.Not<ISubTagContainer>(SubTag.BOUNCY));
|
|
toolHeadSaw .mCondition = new ICondition.And<ISubTagContainer>(new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING), new ICondition.Not<ISubTagContainer>(SubTag.BOUNCY));
|
|
toolHeadDrill .mCondition = new ICondition.And<ISubTagContainer>(new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING), new ICondition.Not<ISubTagContainer>(SubTag.BOUNCY));
|
|
toolHeadChainsaw .mCondition = new ICondition.And<ISubTagContainer>(new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING), new ICondition.Not<ISubTagContainer>(SubTag.BOUNCY));
|
|
toolHeadWrench .mCondition = new ICondition.And<ISubTagContainer>(new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING), new ICondition.Not<ISubTagContainer>(SubTag.BOUNCY));
|
|
toolHeadBuzzSaw .mCondition = new ICondition.And<ISubTagContainer>(new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING), new ICondition.Not<ISubTagContainer>(SubTag.BOUNCY));
|
|
|
|
rotor .mCondition = new ICondition.Nor<ISubTagContainer>(SubTag.CRYSTAL, SubTag.STONE, SubTag.BOUNCY);
|
|
|
|
spring .mCondition = new ICondition.Or<ISubTagContainer>(SubTag.STRETCHY, SubTag.BOUNCY, new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING));
|
|
springSmall .mCondition = new ICondition.Or<ISubTagContainer>(SubTag.STRETCHY, SubTag.BOUNCY, new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING));
|
|
|
|
gemChipped .mCondition = new ICondition.And<ISubTagContainer>(SubTag.TRANSPARENT, SubTag.CRYSTAL, new ICondition.Not<ISubTagContainer>(SubTag.QUARTZ), new ICondition.Not<ISubTagContainer>(SubTag.PEARL), new ICondition.Not<ISubTagContainer>(SubTag.MAGICAL));
|
|
gemFlawed .mCondition = new ICondition.And<ISubTagContainer>(SubTag.TRANSPARENT, SubTag.CRYSTAL, new ICondition.Not<ISubTagContainer>(SubTag.QUARTZ), new ICondition.Not<ISubTagContainer>(SubTag.PEARL), new ICondition.Not<ISubTagContainer>(SubTag.MAGICAL));
|
|
gemFlawless .mCondition = new ICondition.And<ISubTagContainer>(SubTag.TRANSPARENT, SubTag.CRYSTAL, new ICondition.Not<ISubTagContainer>(SubTag.QUARTZ), new ICondition.Not<ISubTagContainer>(SubTag.PEARL), new ICondition.Not<ISubTagContainer>(SubTag.MAGICAL));
|
|
gemExquisite .mCondition = new ICondition.And<ISubTagContainer>(SubTag.TRANSPARENT, SubTag.CRYSTAL, new ICondition.Not<ISubTagContainer>(SubTag.QUARTZ), new ICondition.Not<ISubTagContainer>(SubTag.PEARL), new ICondition.Not<ISubTagContainer>(SubTag.MAGICAL));
|
|
|
|
lens .mCondition = new ICondition.Or<ISubTagContainer>(SubTag.MAGICAL, new ICondition.And<ISubTagContainer>(SubTag.TRANSPARENT, SubTag.HAS_COLOR));
|
|
|
|
plateDouble .mCondition = new ICondition.Or<ISubTagContainer>(SubTag.PAPER, new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING));
|
|
plateTriple .mCondition = new ICondition.Or<ISubTagContainer>(SubTag.PAPER, new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING));
|
|
plateQuadruple .mCondition = new ICondition.Or<ISubTagContainer>(SubTag.PAPER, new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING));
|
|
plateQuintuple .mCondition = new ICondition.Or<ISubTagContainer>(SubTag.PAPER, new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING));
|
|
|
|
plateDense .mCondition = new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING);
|
|
|
|
ingotDouble .mCondition = new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING);
|
|
ingotTriple .mCondition = new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING);
|
|
ingotQuadruple .mCondition = new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING);
|
|
ingotQuintuple .mCondition = new ICondition.Not<ISubTagContainer>(SubTag.NO_SMASHING);
|
|
|
|
wireFine .mCondition = SubTag.METAL;
|
|
|
|
//-----
|
|
|
|
pipeRestrictiveTiny.mSecondaryMaterial = new MaterialStack(Materials.Steel , ring.mMaterialAmount);
|
|
pipeRestrictiveSmall.mSecondaryMaterial = new MaterialStack(Materials.Steel , ring.mMaterialAmount * 2);
|
|
pipeRestrictiveMedium.mSecondaryMaterial = new MaterialStack(Materials.Steel , ring.mMaterialAmount * 3);
|
|
pipeRestrictiveLarge.mSecondaryMaterial = new MaterialStack(Materials.Steel , ring.mMaterialAmount * 4);
|
|
pipeRestrictiveHuge.mSecondaryMaterial = new MaterialStack(Materials.Steel , ring.mMaterialAmount * 5);
|
|
cableGt12.mSecondaryMaterial = new MaterialStack(Materials.Rubber , plate.mMaterialAmount * 4);
|
|
cableGt08.mSecondaryMaterial = new MaterialStack(Materials.Rubber , plate.mMaterialAmount * 3);
|
|
cableGt04.mSecondaryMaterial = new MaterialStack(Materials.Rubber , plate.mMaterialAmount * 2);
|
|
cableGt02.mSecondaryMaterial = new MaterialStack(Materials.Rubber , plate.mMaterialAmount);
|
|
cableGt01.mSecondaryMaterial = new MaterialStack(Materials.Rubber , plate.mMaterialAmount);
|
|
bucket.mSecondaryMaterial = new MaterialStack(Materials.Iron , ingot.mMaterialAmount * 3);
|
|
cell.mSecondaryMaterial = new MaterialStack(Materials.Tin , plate.mMaterialAmount * 2);
|
|
cellPlasma.mSecondaryMaterial = new MaterialStack(Materials.Tin , plate.mMaterialAmount * 2);
|
|
oreRedgranite.mSecondaryMaterial = new MaterialStack(Materials.GraniteRed , dust.mMaterialAmount);
|
|
oreBlackgranite.mSecondaryMaterial = new MaterialStack(Materials.GraniteBlack , dust.mMaterialAmount);
|
|
oreNetherrack.mSecondaryMaterial = new MaterialStack(Materials.Netherrack , dust.mMaterialAmount);
|
|
oreNether.mSecondaryMaterial = new MaterialStack(Materials.Netherrack , dust.mMaterialAmount);
|
|
oreEndstone.mSecondaryMaterial = new MaterialStack(Materials.Endstone , dust.mMaterialAmount);
|
|
oreEnd.mSecondaryMaterial = new MaterialStack(Materials.Endstone , dust.mMaterialAmount);
|
|
oreDense.mSecondaryMaterial = new MaterialStack(Materials.Stone , dust.mMaterialAmount);
|
|
orePoor.mSecondaryMaterial = new MaterialStack(Materials.Stone , dust.mMaterialAmount * 2);
|
|
oreSmall.mSecondaryMaterial = new MaterialStack(Materials.Stone , dust.mMaterialAmount * 2);
|
|
oreNormal.mSecondaryMaterial = new MaterialStack(Materials.Stone , dust.mMaterialAmount * 2);
|
|
oreRich.mSecondaryMaterial = new MaterialStack(Materials.Stone , dust.mMaterialAmount * 2);
|
|
ore.mSecondaryMaterial = new MaterialStack(Materials.Stone , dust.mMaterialAmount);
|
|
crushed.mSecondaryMaterial = new MaterialStack(Materials.Stone , dust.mMaterialAmount);
|
|
toolHeadDrill.mSecondaryMaterial = new MaterialStack(Materials.Steel , plate.mMaterialAmount * 4);
|
|
toolHeadChainsaw.mSecondaryMaterial = new MaterialStack(Materials.Steel , plate.mMaterialAmount * 4 + ring.mMaterialAmount * 2);
|
|
toolHeadWrench.mSecondaryMaterial = new MaterialStack(Materials.Steel , ring.mMaterialAmount + screw.mMaterialAmount * 2);
|
|
arrowGtWood.mSecondaryMaterial = new MaterialStack(Materials.Wood , stick.mMaterialAmount);
|
|
arrowGtPlastic.mSecondaryMaterial = new MaterialStack(Materials.Plastic , stick.mMaterialAmount);
|
|
bulletGtSmall.mSecondaryMaterial = new MaterialStack(Materials.Brass , ingot.mMaterialAmount / 9);
|
|
bulletGtMedium.mSecondaryMaterial = new MaterialStack(Materials.Brass , ingot.mMaterialAmount / 6);
|
|
bulletGtLarge.mSecondaryMaterial = new MaterialStack(Materials.Brass , ingot.mMaterialAmount / 3);
|
|
}
|
|
|
|
public final ArrayList<ItemStack> mPrefixedItems = new ArrayList<ItemStack>();
|
|
|
|
public boolean add(ItemStack aStack) {
|
|
if (aStack == null) return false;
|
|
if (!contains(aStack)) mPrefixedItems.add(aStack);
|
|
while (mPrefixedItems.contains(null)) mPrefixedItems.remove(null);
|
|
return true;
|
|
}
|
|
|
|
public boolean contains(ItemStack aStack) {
|
|
if (aStack == null) return false;
|
|
for (ItemStack tStack : mPrefixedItems) if (GT_Utility.areStacksEqual(aStack, tStack, !tStack.hasTagCompound())) return true;
|
|
return false;
|
|
}
|
|
|
|
public boolean doGenerateItem(Materials aMaterial) {
|
|
return aMaterial != null && aMaterial != Materials._NULL && ((aMaterial.mTypes & mMaterialGenerationBits) != 0 || mGeneratedItems.contains(aMaterial)) && !mNotGeneratedItems.contains(aMaterial) && (mCondition == null || mCondition.isTrue(aMaterial));
|
|
}
|
|
|
|
public boolean ignoreMaterials(Materials... aMaterials) {
|
|
for (Materials tMaterial : aMaterials) if (tMaterial != null) mIgnoredMaterials.add(tMaterial);
|
|
return true;
|
|
}
|
|
|
|
public boolean isIgnored(Materials aMaterial) {
|
|
if (aMaterial != null && (!aMaterial.mUnificatable || aMaterial != aMaterial.mMaterialInto)) return true;
|
|
return mIgnoredMaterials.contains(aMaterial);
|
|
}
|
|
|
|
public boolean addFamiliarPrefix(OrePrefixes aPrefix) {
|
|
if (aPrefix == null || mFamiliarPrefixes.contains(aPrefix) || aPrefix == this) return false;
|
|
return mFamiliarPrefixes.add(aPrefix);
|
|
}
|
|
|
|
public boolean add(IOreRecipeRegistrator aRegistrator) {
|
|
if (aRegistrator == null) return false;
|
|
return mOreProcessing.add(aRegistrator);
|
|
}
|
|
|
|
public void processOre(Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) {
|
|
if (aMaterial != null && (aMaterial != Materials._NULL || mIsSelfReferencing || !mIsMaterialBased) && GT_Utility.isStackValid(aStack)) for (IOreRecipeRegistrator tRegistrator : mOreProcessing) {
|
|
if (D2) GT_Log.ore.println("Processing '" + aOreDictName + "' with the Prefix '" + name() + "' and the Material '" + aMaterial.name() + "' at " + GT_Utility.getClassName(tRegistrator));
|
|
tRegistrator.registerOre(this, aMaterial, aOreDictName, aModName, GT_Utility.copyAmount(1, aStack));
|
|
}
|
|
}
|
|
|
|
public ItemStack mContainerItem = null;
|
|
public ICondition<ISubTagContainer> mCondition = null;
|
|
public byte mDefaultStackSize = 64;
|
|
public final short mTextureIndex;
|
|
public final String mRegularLocalName, mLocalizedMaterialPre, mLocalizedMaterialPost;
|
|
public final boolean mIsUsedForOreProcessing, mIsEnchantable, mIsUnificatable, mIsMaterialBased, mIsSelfReferencing, mIsContainer, mDontUnificateActively, mIsUsedForBlocks, mAllowNormalRecycling, mGenerateDefaultItem;
|
|
public MaterialStack mSecondaryMaterial = null;
|
|
public OrePrefixes mPrefixInto = this;
|
|
public final List<TC_AspectStack> mAspects = new ArrayList<TC_AspectStack>();
|
|
public final Collection<OrePrefixes> mFamiliarPrefixes = new HashSet<OrePrefixes>();
|
|
private final Collection<Materials> mNotGeneratedItems = new HashSet<Materials>(), mIgnoredMaterials = new HashSet<Materials>(), mGeneratedItems = new HashSet<Materials>();
|
|
private final ArrayList<IOreRecipeRegistrator> mOreProcessing = new ArrayList<IOreRecipeRegistrator>();
|
|
public float mHeatDamage = 0.0F; // Negative for Frost Damage
|
|
|
|
/**
|
|
* Used to determine the amount of Material this Prefix contains.
|
|
* Multiply or Divide GregTech_API.MATERIAL_UNIT to get the Amounts in comparision to one Ingot.
|
|
* 0 = Null
|
|
* Negative = Undefined Amount
|
|
*/
|
|
public final long mMaterialAmount;
|
|
|
|
/**
|
|
* Yes this Value can be changed to add Bits for the MetaGenerated-Item-Check.
|
|
*/
|
|
public int mMaterialGenerationBits = 0;
|
|
|
|
private OrePrefixes(String aRegularLocalName, String aLocalizedMaterialPre, String aLocalizedMaterialPost, boolean aIsUnificatable, boolean aIsMaterialBased, boolean aIsSelfReferencing, boolean aIsContainer, boolean aDontUnificateActively, boolean aIsUsedForBlocks, boolean aAllowNormalRecycling, boolean aGenerateDefaultItem, boolean aIsEnchantable, boolean aIsUsedForOreProcessing, int aMaterialGenerationBits, long aMaterialAmount, int aDefaultStackSize, int aTextureindex) {
|
|
mIsUnificatable = aIsUnificatable;
|
|
mIsMaterialBased = aIsMaterialBased;
|
|
mIsSelfReferencing = aIsSelfReferencing;
|
|
mIsContainer = aIsContainer;
|
|
mDontUnificateActively = aDontUnificateActively;
|
|
mIsUsedForBlocks = aIsUsedForBlocks;
|
|
mAllowNormalRecycling = aAllowNormalRecycling;
|
|
mGenerateDefaultItem = aGenerateDefaultItem;
|
|
mIsEnchantable = aIsEnchantable;
|
|
mIsUsedForOreProcessing = aIsUsedForOreProcessing;
|
|
mMaterialGenerationBits = aMaterialGenerationBits;
|
|
mMaterialAmount = aMaterialAmount;
|
|
mRegularLocalName = aRegularLocalName;
|
|
mLocalizedMaterialPre = aLocalizedMaterialPre;
|
|
mLocalizedMaterialPost = aLocalizedMaterialPost;
|
|
mDefaultStackSize = (byte)aDefaultStackSize;
|
|
mTextureIndex = (short)aTextureindex;
|
|
|
|
if (name().startsWith("ore")) {
|
|
new TC_AspectStack(TC_Aspects.TERRA, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("wire") || name().startsWith("cable")) {
|
|
new TC_AspectStack(TC_Aspects.ELECTRUM, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("dust")) {
|
|
new TC_AspectStack(TC_Aspects.PERDITIO, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("crushed")) {
|
|
new TC_AspectStack(TC_Aspects.PERFODIO, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("ingot") || name().startsWith("nugget")) {
|
|
new TC_AspectStack(TC_Aspects.METALLUM, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("armor")) {
|
|
new TC_AspectStack(TC_Aspects.TUTAMEN, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("stone")) {
|
|
new TC_AspectStack(TC_Aspects.TERRA, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("pipe")) {
|
|
new TC_AspectStack(TC_Aspects.ITER, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("gear")) {
|
|
new TC_AspectStack(TC_Aspects.MOTUS, 1).addToAspectList(mAspects);
|
|
new TC_AspectStack(TC_Aspects.MACHINA, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("frame") || name().startsWith("plate")) {
|
|
new TC_AspectStack(TC_Aspects.FABRICO, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("tool")) {
|
|
new TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("gem") || name().startsWith("crystal") || name().startsWith("lens")) {
|
|
new TC_AspectStack(TC_Aspects.VITREUS, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("crate")) {
|
|
new TC_AspectStack(TC_Aspects.ITER, 2).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("circuit")) {
|
|
new TC_AspectStack(TC_Aspects.COGNITO, 1).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("computer")) {
|
|
new TC_AspectStack(TC_Aspects.COGNITO, 4).addToAspectList(mAspects);
|
|
} else
|
|
if (name().startsWith("battery")) {
|
|
new TC_AspectStack(TC_Aspects.ELECTRUM, 1).addToAspectList(mAspects);
|
|
}
|
|
}
|
|
|
|
public static OrePrefixes getOrePrefix(String aOre) {
|
|
for (OrePrefixes tPrefix : values()) if (aOre.startsWith(tPrefix.toString())) {
|
|
if (tPrefix == oreNether && aOre.equals("oreNetherQuartz")) return ore;
|
|
return tPrefix;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static String stripPrefix(String aOre) {
|
|
for (OrePrefixes tPrefix : values()) {
|
|
if (aOre.startsWith(tPrefix.toString())) {
|
|
return aOre.replaceFirst(tPrefix.toString(), "");
|
|
}
|
|
}
|
|
return aOre;
|
|
}
|
|
|
|
public static String replacePrefix(String aOre, OrePrefixes aPrefix) {
|
|
for (OrePrefixes tPrefix : values()) {
|
|
if (aOre.startsWith(tPrefix.toString())) {
|
|
return aOre.replaceFirst(tPrefix.toString(), aPrefix.toString());
|
|
}
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public static OrePrefixes getPrefix(String aPrefixName) {
|
|
return getPrefix(aPrefixName, null);
|
|
}
|
|
|
|
public static OrePrefixes getPrefix(String aPrefixName, OrePrefixes aReplacement) {
|
|
Object tObject = GT_Utility.getFieldContent(OrePrefixes.class, aPrefixName, false, false);
|
|
if (tObject != null && tObject instanceof OrePrefixes) return (OrePrefixes)tObject;
|
|
return aReplacement;
|
|
}
|
|
|
|
public Object get(Object aMaterial) {
|
|
if (aMaterial instanceof Materials) return new ItemData(this, (Materials)aMaterial);
|
|
return name() + aMaterial;
|
|
}
|
|
|
|
public static Materials getMaterial(String aOre) {
|
|
return Materials.get(stripPrefix(aOre));
|
|
}
|
|
|
|
public static Materials getMaterial(String aOre, OrePrefixes aPrefix) {
|
|
return Materials.get(aOre.replaceFirst(aPrefix.toString(), ""));
|
|
}
|
|
|
|
public static Materials getRealMaterial(String aOre, OrePrefixes aPrefix) {
|
|
return Materials.getRealMaterial(aOre.replaceFirst(aPrefix.toString(), ""));
|
|
}
|
|
|
|
public static boolean isInstanceOf(String aName, OrePrefixes aPrefix) {
|
|
return aName == null ? false : aName.startsWith(aPrefix.toString());
|
|
}
|
|
|
|
public static volatile int VERSION = 508;
|
|
|
|
@SuppressWarnings("incomplete-switch")
|
|
public String getDefaultLocalNameForItem(Materials aMaterial) {
|
|
// Certain Materials have slightly different Localizations.
|
|
switch (this) {
|
|
case crateGtDust: return mLocalizedMaterialPre + OrePrefixes.dust.getDefaultLocalNameForItem(aMaterial);
|
|
case crateGtIngot: return mLocalizedMaterialPre + OrePrefixes.ingot.getDefaultLocalNameForItem(aMaterial);
|
|
case crateGtGem: return mLocalizedMaterialPre + OrePrefixes.gem.getDefaultLocalNameForItem(aMaterial);
|
|
case crateGtPlate: return mLocalizedMaterialPre + OrePrefixes.plate.getDefaultLocalNameForItem(aMaterial);
|
|
}
|
|
switch (aMaterial) {
|
|
case Glass:
|
|
if (name().startsWith("gem")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Crystal";
|
|
if (name().startsWith("plate")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Pane";
|
|
break;
|
|
case InfusedAir: case InfusedDull: case InfusedEarth: case InfusedEntropy: case InfusedFire: case InfusedOrder: case InfusedVis: case InfusedWater:
|
|
if (name().startsWith("gem")) return mLocalizedMaterialPre + "Shard of " + aMaterial.mDefaultLocalName;
|
|
if (name().startsWith("crystal")) return mLocalizedMaterialPre + "Shard of " + aMaterial.mDefaultLocalName;
|
|
if (name().startsWith("plate")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Crystal Plate";
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Crystal Powder";
|
|
if (this == OrePrefixes.crushedCentrifuged) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Crystals";
|
|
if (this == OrePrefixes.crushedPurified) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Crystals";
|
|
if (this == OrePrefixes.crushed) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Crystals";
|
|
break;
|
|
case Wheat:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + "Flour";
|
|
break;
|
|
case Ice:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + "Crushed Ice";
|
|
break;
|
|
case Wood: case WoodSealed:
|
|
if (name().startsWith("bolt")) return "Short " + aMaterial.mDefaultLocalName + " Stick";
|
|
if (name().startsWith("stick")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Stick";
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Pulp";
|
|
if (name().startsWith("nugget")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Chip";
|
|
if (name().startsWith("plate")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Plank";
|
|
break;
|
|
case Plastic: case Rubber:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Pulp";
|
|
if (name().startsWith("plate")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Sheet";
|
|
if (name().startsWith("ingot")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Bar";
|
|
if (name().startsWith("nugget")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Chip";
|
|
if (name().startsWith("foil")) return "Thin " + aMaterial.mDefaultLocalName + " Sheet";
|
|
break;
|
|
case FierySteel:
|
|
if (mIsContainer) return mLocalizedMaterialPre + "Fiery Blood" + mLocalizedMaterialPost;
|
|
break;
|
|
case Steeleaf:
|
|
if (name().startsWith("ingot")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName;
|
|
break;
|
|
case Bone:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + "Bone Meal";
|
|
break;
|
|
case Blaze: case Milk: case Cocoa: case Chocolate: case Coffee: case Chili: case Cheese: case Snow:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + " Powder";
|
|
break;
|
|
case Paper:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + "Chad";
|
|
if (this == OrePrefixes.plate) return "Sheet of Paper";
|
|
if (this == OrePrefixes.plateDouble) return "Paperboard";
|
|
if (this == OrePrefixes.plateTriple) return "Carton";
|
|
if (this == OrePrefixes.plateQuadruple) return "Cardboard";
|
|
if (this == OrePrefixes.plateQuintuple) return "Thick Cardboard";
|
|
if (this == OrePrefixes.plateDense) return "Strong Cardboard";
|
|
break;
|
|
case MeatRaw:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + "Mince Meat";
|
|
break;
|
|
case MeatCooked:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + "Cooked Mince Meat";
|
|
break;
|
|
case Ash: case DarkAsh: case Gunpowder: case Sugar: case Salt: case RockSalt: case VolcanicAsh: case RareEarth:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName;
|
|
break;
|
|
case Vermiculite: case Bentonite: case Kaolinite: case Talc: case BasalticMineralSand: case GraniticMineralSand: case GlauconiteSand: case CassiteriteSand: case GarnetSand: case QuartzSand: case Pitchblende: case FullersEarth:
|
|
if (name().startsWith("dust")) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName;
|
|
if (this == OrePrefixes.crushedCentrifuged) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName;
|
|
if (this == OrePrefixes.crushedPurified) return mLocalizedMaterialPre + aMaterial.mDefaultLocalName;
|
|
if (this == OrePrefixes.crushed) return "Ground " + aMaterial.mDefaultLocalName;
|
|
break;
|
|
}
|
|
// Use Standard Localization
|
|
return mLocalizedMaterialPre + aMaterial.mDefaultLocalName + mLocalizedMaterialPost;
|
|
}
|
|
} |