mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Merge branch 'master' of https://github.com/mDiyo/TinkersConstruct
This commit is contained in:
commit
ebb2ae15a6
170 files changed
+4343
-432
No files matched your search
@@ -146,7 +146,59 @@ item.InfiTool.PotionLauncher.name=Trankwerfer
|
||||
item.InfiTool.Mattock.name=Breithacke
|
||||
|
||||
item.tconstruct.Pattern.blank_pattern.name=Leere Schablone
|
||||
item.tconstruct.Pattern.rod.name=Werkzeuggriffsschablone
|
||||
item.tconstruct.Pattern.pickaxe.name=Spitzhackenkopfschablone
|
||||
item.tconstruct.Pattern.shovel.name=Schaufelkopfschablone
|
||||
item.tconstruct.Pattern.axe.name=Axtkopfschablone
|
||||
item.tconstruct.Pattern.swordblade.name=Schwertklingenschablone
|
||||
item.tconstruct.Pattern.largeguard.name=Breite Schützerschablone
|
||||
item.tconstruct.Pattern.mediumguard.name=Handschützerschablone
|
||||
item.tconstruct.Pattern.crossbar.name=Querstangenschablone
|
||||
item.tconstruct.Pattern.binding.name=Wekzeugbindungsschablone
|
||||
item.tconstruct.Pattern.frypan.name=Pfannenschablone
|
||||
item.tconstruct.Pattern.sign.name=Große Schildbrettschablone
|
||||
item.tconstruct.Pattern.knifeblade.name=Messerklingenschablone
|
||||
item.tconstruct.Pattern.chisel.name=Meißelkopfschablone
|
||||
item.tconstruct.Pattern.largerod.name=Robuste Griffschablone
|
||||
item.tconstruct.Pattern.toughbinding.name=Robuste Bindungsschablone
|
||||
item.tconstruct.Pattern.largeplate.name=Große Plattenschablone
|
||||
item.tconstruct.Pattern.broadaxe.name=Breitaxtkopfschablone
|
||||
item.tconstruct.Pattern.scythe.name=Sensenkopfschablone
|
||||
item.tconstruct.Pattern.excavator.name=Exkavatorkopfschablone
|
||||
item.tconstruct.Pattern.largeblade.name=Große Klingenschablone
|
||||
item.tconstruct.Pattern.hammerhead.name=Hammerkopfschablone
|
||||
item.tconstruct.Pattern.fullguard.name=Volle Schützerschablone
|
||||
item.tconstruct.Pattern.bowstring.name=Bogensehnenschablone
|
||||
item.tconstruct.Pattern.fletching.name=Befiederungsschablone
|
||||
item.tconstruct.Pattern.arrowhead.name=Pfeilspitzenschablone
|
||||
|
||||
item.tconstruct.Pattern.blank_cast.name=Leere Gussform
|
||||
item.tconstruct.MetalPattern.rod.name=Werkzeuggriffsgussform
|
||||
item.tconstruct.MetalPattern.pickaxe.name=Spitzhackenkopfgussform
|
||||
item.tconstruct.MetalPattern.shovel.name=Schaufelkopfgussform
|
||||
item.tconstruct.MetalPattern.axe.name=Axtkopfgussform
|
||||
item.tconstruct.MetalPattern.swordblade.name=Schwertklingengussform
|
||||
item.tconstruct.MetalPattern.largeguard.name=Breite Schützergussform
|
||||
item.tconstruct.MetalPattern.mediumguard.name=Handschützergussform
|
||||
item.tconstruct.MetalPattern.crossbar.name=Querstangengussform
|
||||
item.tconstruct.MetalPattern.binding.name=Wekzeugbindungsgussform
|
||||
item.tconstruct.MetalPattern.frypan.name=Pfannengussform
|
||||
item.tconstruct.MetalPattern.sign.name=Große Schildbrettgussform
|
||||
item.tconstruct.MetalPattern.knifeblade.name=Messerklingengussform
|
||||
item.tconstruct.MetalPattern.chisel.name=Meißelkopfgussform
|
||||
item.tconstruct.MetalPattern.largerod.name=Robuste Griffgussform
|
||||
item.tconstruct.MetalPattern.toughbinding.name=Robuste Bindungsgussform
|
||||
item.tconstruct.MetalPattern.largeplate.name=Große Plattengussform
|
||||
item.tconstruct.MetalPattern.broadaxe.name=Breitaxtkopfgussform
|
||||
item.tconstruct.MetalPattern.scythe.name=Sensenkopfgussform
|
||||
item.tconstruct.MetalPattern.excavator.name=Exkavatorkopfgussform
|
||||
item.tconstruct.MetalPattern.largeblade.name=Große Klingengussform
|
||||
item.tconstruct.MetalPattern.hammerhead.name=Hammerkopfgussform
|
||||
item.tconstruct.MetalPattern.fullguard.name=Volle Schützergussform
|
||||
item.tconstruct.MetalPattern.bowstring.name=Bogensehnengussform
|
||||
item.tconstruct.MetalPattern.fletching.name=Befiederungsgussform
|
||||
item.tconstruct.MetalPattern.arrowhead.name=Pfeilspitzengussform
|
||||
item.tconstruct.MetalPattern.ingot.name=Barrengussform
|
||||
|
||||
item.tconstruct.Materials.PaperStack.name=Papierstapel
|
||||
item.tconstruct.Materials.SlimeCrystal.name=Schleimkristall
|
||||
@@ -238,6 +290,7 @@ StorageMetals.Steel.name=Stahlblock
|
||||
StorageMetals.Ender.name=Block Soliden Enders
|
||||
|
||||
tile.decoration.stonetorch.name=Fackel
|
||||
tile.decoration.stoneladder.name=Leiter
|
||||
tile.CraftingStation.name=Handwerksstation
|
||||
|
||||
block.glass.pure.name=Klares Glas
|
||||
@@ -427,52 +480,52 @@ death.two.smeltery=%1$s ist mit der Schmelzerei eins geworden
|
||||
death.three.smeltery=%1$s wird ein Meilenstein für unsere Revolution sein!
|
||||
death.four.smeltery=%1$s dachte, das Schwimmen in heißen Flüssigkeiten wäre eine ntry>
|
||||
|
||||
parttype.wood=Holz -
|
||||
parttype.stone=Stein -
|
||||
parttype.iron=Eisen -
|
||||
parttype.flint=Feuterstein -
|
||||
parttype.cactus=Kaktus -
|
||||
parttype.bone=Knochen -
|
||||
parttype.obsidian=Obsidian -
|
||||
parttype.slime=Schleim -
|
||||
parttype.paper=Papier -
|
||||
parttype.netherrack=Netherstein -
|
||||
parttype.cobalt=Cobalt -
|
||||
parttype.ardite=Ardit -
|
||||
parttype.manyullyn=Manyullyn -
|
||||
parttype.copper=Kupfer -
|
||||
parttype.bronze=Bronze -
|
||||
parttype.alumite=Alumit -
|
||||
parttype.steel=Stahl -
|
||||
parttype.blueslime=Schleim -
|
||||
parttype.thaumium=Thaumium -
|
||||
parttype.wood=Holz
|
||||
parttype.stone=Stein
|
||||
parttype.iron=Eisen
|
||||
parttype.flint=Feuterstein
|
||||
parttype.cactus=Kaktus
|
||||
parttype.bone=Knochen
|
||||
parttype.obsidian=Obsidian
|
||||
parttype.slime=Schleim
|
||||
parttype.paper=Papier
|
||||
parttype.netherrack=Netherstein
|
||||
parttype.cobalt=Cobalt
|
||||
parttype.ardite=Ardit
|
||||
parttype.manyullyn=Manyullyn
|
||||
parttype.copper=Kupfer
|
||||
parttype.bronze=Bronze
|
||||
parttype.alumite=Alumit
|
||||
parttype.steel=Stahl
|
||||
parttype.blueslime=Schleim
|
||||
parttype.thaumium=Thaumium
|
||||
|
||||
toolpart.ToolRod=Werkzeuggriff
|
||||
toolpart.PickHead=Spitzhackenkopf
|
||||
toolpart.ShovelHead=Schaufelkopf
|
||||
toolpart.AxeHead=Axtkopf
|
||||
toolpart.Binding=Verbindung
|
||||
toolpart.ToughBind=Robuste Verbindung
|
||||
toolpart.ToughRod=Robuster Griff
|
||||
toolpart.LargePlate=Große Platte
|
||||
toolpart.SwordBlade=Swertklinge
|
||||
toolpart.LargeGuard=Großer Schützer
|
||||
toolpart.MediumGuard=Mittelgroßer Schützer
|
||||
toolpart.Crossbar=Querstange
|
||||
toolpart.KnifeBlade=Messerklinge
|
||||
toolpart.FullGuard=Voller Schützer
|
||||
toolpart.FrypanHead=Pfanne
|
||||
toolpart.SignHead=Schildkopf
|
||||
toolpart.ChiselHead=Meißelkopf
|
||||
toolpart.ScytheHead=Sensenkopf
|
||||
toolpart.LumberHead=Breitschwertkopf
|
||||
toolpart.ExcavatorHead=Exkavatorkopf
|
||||
toolpart.ToolShard=Scherbe
|
||||
toolpart.LargeSwordBlade=Große Schwerklinge
|
||||
toolpart.HammerHead=Hammerkopf
|
||||
toolpart.Bowstring=Bogensehne
|
||||
toolpart.ArrowHead=Pfeilspitze
|
||||
toolpart.Fletching=Befiederung
|
||||
toolpart.ToolRod=%%material-Werkzeuggriff
|
||||
toolpart.PickHead=%%material-Spitzhackenkopf
|
||||
toolpart.ShovelHead=%%material-Schaufelkopf
|
||||
toolpart.AxeHead=%%material-Axtkopf
|
||||
toolpart.Binding=%%material-Wekzeugbindung
|
||||
toolpart.ToughBind=Robuste %%materialbindung
|
||||
toolpart.ToughRod=Robuster %%materialgriff
|
||||
toolpart.LargePlate=Große %%materialplatte
|
||||
toolpart.SwordBlade=%%material-Schwertklinge
|
||||
toolpart.LargeGuard=Breiter %%materialschützer
|
||||
toolpart.MediumGuard=%%material-Handschützer
|
||||
toolpart.Crossbar=%%material-Querstange
|
||||
toolpart.KnifeBlade=%%material-Messerklinge
|
||||
toolpart.FullGuard=Voller %%materialschützer
|
||||
toolpart.FrypanHead=%%material-Pfanne
|
||||
toolpart.SignHead=%%material-Schildbrett
|
||||
toolpart.ChiselHead=%%material-Meißelkopf
|
||||
toolpart.ScytheHead=%%material-Sensenkopf
|
||||
toolpart.LumberHead=%%material-Breitaxtkopf
|
||||
toolpart.ExcavatorHead=%%material-Exkavatorkopf
|
||||
toolpart.ToolShard=%%materialscherbe
|
||||
toolpart.LargeSwordBlade=Große %%materialschwertklinge
|
||||
toolpart.HammerHead=%%material-Hammerkopf
|
||||
toolpart.Bowstring=%%materialbogensehne
|
||||
toolpart.ArrowHead=%%materialpfeilspitze
|
||||
toolpart.Fletching=%%materialbefiederung
|
||||
|
||||
fluid.iron.molten=Geschmolzenes Eisen
|
||||
fluid.gold.molten=Geschmolzenes Gold
|
||||
|
||||
@@ -146,7 +146,59 @@ item.InfiTool.PotionLauncher.name=Potion Launcher
|
||||
item.InfiTool.Mattock.name=Mattock
|
||||
|
||||
item.tconstruct.Pattern.blank_pattern.name=Blank Pattern
|
||||
item.tconstruct.Pattern.rod.name=Tool Rod Pattern
|
||||
item.tconstruct.Pattern.pickaxe.name=Pickaxe Head Pattern
|
||||
item.tconstruct.Pattern.shovel.name=Shovel Head Pattern
|
||||
item.tconstruct.Pattern.axe.name=Axe Head Pattern
|
||||
item.tconstruct.Pattern.swordblade.name=Sword Blade Pattern
|
||||
item.tconstruct.Pattern.largeguard.name=Wide Guard Pattern
|
||||
item.tconstruct.Pattern.mediumguard.name=Hand Guard Pattern
|
||||
item.tconstruct.Pattern.crossbar.name=Crossbar Pattern
|
||||
item.tconstruct.Pattern.binding.name=Tool Binding Pattern
|
||||
item.tconstruct.Pattern.frypan.name=Pan Pattern
|
||||
item.tconstruct.Pattern.sign.name=Wide Board Pattern
|
||||
item.tconstruct.Pattern.knifeblade.name=Knife Blade Pattern
|
||||
item.tconstruct.Pattern.chisel.name=Chisel Head Pattern
|
||||
item.tconstruct.Pattern.largerod.name=Tough Rod Pattern
|
||||
item.tconstruct.Pattern.toughbinding.name=Tough Binding Pattern
|
||||
item.tconstruct.Pattern.largeplate.name=Large Plate Pattern
|
||||
item.tconstruct.Pattern.broadaxe.name=Broadaxe Head Pattern
|
||||
item.tconstruct.Pattern.scythe.name=Scythe Head Pattern
|
||||
item.tconstruct.Pattern.excavator.name=Excavator Head Pattern
|
||||
item.tconstruct.Pattern.largeblade.name=Large Blade Pattern
|
||||
item.tconstruct.Pattern.hammerhead.name=Hammer Head Pattern
|
||||
item.tconstruct.Pattern.fullguard.name=Full Guard Pattern
|
||||
item.tconstruct.Pattern.bowstring.name=Bowstring Pattern
|
||||
item.tconstruct.Pattern.fletching.name=Fletching Pattern
|
||||
item.tconstruct.Pattern.arrowhead.name=Arrowhead Pattern
|
||||
|
||||
item.tconstruct.Pattern.blank_cast.name=Blank Cast
|
||||
item.tconstruct.MetalPattern.rod.name=Tool Rod Cast
|
||||
item.tconstruct.MetalPattern.pickaxe.name=Pickaxe Head Cast
|
||||
item.tconstruct.MetalPattern.shovel.name=Shovel Head Cast
|
||||
item.tconstruct.MetalPattern.axe.name=Axe Head Cast
|
||||
item.tconstruct.MetalPattern.swordblade.name=Sword Blade Cast
|
||||
item.tconstruct.MetalPattern.largeguard.name=Wide Guard Cast
|
||||
item.tconstruct.MetalPattern.mediumguard.name=Hand Guard Cast
|
||||
item.tconstruct.MetalPattern.crossbar.name=Crossbar Cast
|
||||
item.tconstruct.MetalPattern.binding.name=Tool Binding Cast
|
||||
item.tconstruct.MetalPattern.frypan.name=Pan Cast
|
||||
item.tconstruct.MetalPattern.sign.name=Wide Board Cast
|
||||
item.tconstruct.MetalPattern.knifeblade.name=Knife Blade Cast
|
||||
item.tconstruct.MetalPattern.chisel.name=Chisel Head Cast
|
||||
item.tconstruct.MetalPattern.largerod.name=Tough Rod Cast
|
||||
item.tconstruct.MetalPattern.toughbinding.name=Tough Binding Cast
|
||||
item.tconstruct.MetalPattern.largeplate.name=Large Plate Cast
|
||||
item.tconstruct.MetalPattern.broadaxe.name=Broadaxe Head Cast
|
||||
item.tconstruct.MetalPattern.scythe.name=Scythe Head Cast
|
||||
item.tconstruct.MetalPattern.excavator.name=Excavator Head Cast
|
||||
item.tconstruct.MetalPattern.largeblade.name=Large Blade Cast
|
||||
item.tconstruct.MetalPattern.hammerhead.name=Hammer Head Cast
|
||||
item.tconstruct.MetalPattern.fullguard.name=Full Guard Cast
|
||||
item.tconstruct.MetalPattern.bowstring.name=Bowstring Cast
|
||||
item.tconstruct.MetalPattern.fletching.name=Fletching Cast
|
||||
item.tconstruct.MetalPattern.arrowhead.name=Arrowhead Cast
|
||||
item.tconstruct.MetalPattern.ingot.name=Ingot Cast
|
||||
|
||||
item.tconstruct.Materials.PaperStack.name=Paper Stack
|
||||
item.tconstruct.Materials.SlimeCrystal.name=Slime Crystal
|
||||
@@ -238,6 +290,7 @@ StorageMetals.Steel.name=Block of Steel
|
||||
StorageMetals.Ender.name=Block of Solid Ender
|
||||
|
||||
tile.decoration.stonetorch.name=Torch
|
||||
tile.decoration.stoneladder.name=Ladder
|
||||
tile.CraftingStation.name=Crafting Station
|
||||
|
||||
block.glass.pure.name=Clear Glass
|
||||
@@ -447,32 +500,32 @@ parttype.steel=Steel
|
||||
parttype.blueslime=Slime
|
||||
parttype.thaumium=Thaumium
|
||||
|
||||
toolpart.ToolRod=Tool Rod
|
||||
toolpart.PickHead=Pickaxe Head
|
||||
toolpart.ShovelHead=Shovel Head
|
||||
toolpart.AxeHead=Axe Head
|
||||
toolpart.Binding=Binding
|
||||
toolpart.ToughBind=Tough Binding
|
||||
toolpart.ToughRod=Tough Rod
|
||||
toolpart.LargePlate=Large Plate
|
||||
toolpart.SwordBlade=Sword Blade
|
||||
toolpart.LargeGuard=Large Guard
|
||||
toolpart.MediumGuard=Medium Guard
|
||||
toolpart.Crossbar=Crossbar
|
||||
toolpart.KnifeBlade=Knife Blade
|
||||
toolpart.FullGuard=Full Guard
|
||||
toolpart.FrypanHead=Pan
|
||||
toolpart.SignHead=Sign Head
|
||||
toolpart.ChiselHead=Chisel Head
|
||||
toolpart.ScytheHead=Scythe Head
|
||||
toolpart.LumberHead=Broad Axe Head
|
||||
toolpart.ExcavatorHead=Excavator Head
|
||||
toolpart.ToolShard=Shard
|
||||
toolpart.LargeSwordBlade=Large Sword Blade
|
||||
toolpart.HammerHead=Hammer Head
|
||||
toolpart.Bowstring=Bowstring
|
||||
toolpart.ArrowHead=Arrowhead
|
||||
toolpart.Fletching=Fletching
|
||||
toolpart.ToolRod=%%material Tool Rod
|
||||
toolpart.PickHead=%%material Pickaxe Head
|
||||
toolpart.ShovelHead=%%material Shovel Head
|
||||
toolpart.AxeHead=%%material Axe Head
|
||||
toolpart.Binding=%%material Binding
|
||||
toolpart.ToughBind=%%material Tough Binding
|
||||
toolpart.ToughRod=%%material Tough Rod
|
||||
toolpart.LargePlate=%%material Large Plate
|
||||
toolpart.SwordBlade=%%material Sword Blade
|
||||
toolpart.LargeGuard=%%material Wide Guard
|
||||
toolpart.MediumGuard=%%material Hand Guard
|
||||
toolpart.Crossbar=%%material Crossbar
|
||||
toolpart.KnifeBlade=%%material Knife Blade
|
||||
toolpart.FullGuard=%%material Full Guard
|
||||
toolpart.FrypanHead=%%material Pan
|
||||
toolpart.SignHead=%%material Sign Head
|
||||
toolpart.ChiselHead=%%material Chisel Head
|
||||
toolpart.ScytheHead=%%material Scythe Head
|
||||
toolpart.LumberHead=%%material Broad Axe Head
|
||||
toolpart.ExcavatorHead=%%material Excavator Head
|
||||
toolpart.ToolShard=%%material Shard
|
||||
toolpart.LargeSwordBlade=%%material Large Sword Blade
|
||||
toolpart.HammerHead=%%material Hammer Head
|
||||
toolpart.Bowstring=%%material Bowstring
|
||||
toolpart.ArrowHead=%%material Arrowhead
|
||||
toolpart.Fletching=%%material Fletching
|
||||
|
||||
fluid.iron.molten=Molten Iron
|
||||
fluid.gold.molten=Molten Gold
|
||||
|
||||
@@ -146,7 +146,59 @@ item.InfiTool.PotionLauncher.name=Lanciatore di Pozzioni
|
||||
item.InfiTool.Mattock.name=Zappa
|
||||
|
||||
item.tconstruct.Pattern.blank_pattern.name=Modello
|
||||
item.tconstruct.Pattern.rod.name=Modello per Manico
|
||||
item.tconstruct.Pattern.pickaxe.name=Modello per Testa di Piccone
|
||||
item.tconstruct.Pattern.shovel.name=Modello per Testa di Pala
|
||||
item.tconstruct.Pattern.axe.name=Modello per Testa d'Ascia
|
||||
item.tconstruct.Pattern.swordblade.name=Modello per Lama di Spada
|
||||
item.tconstruct.Pattern.largeguard.name=Modello per Guardia Larga
|
||||
item.tconstruct.Pattern.mediumguard.name=Modello per Guardia Media
|
||||
item.tconstruct.Pattern.crossbar.name=Modello per Guardia Traversa
|
||||
item.tconstruct.Pattern.binding.name=Modello per Legatura
|
||||
item.tconstruct.Pattern.frypan.name=Modello per Padella
|
||||
item.tconstruct.Pattern.sign.name=Modello per Testa di Cartello
|
||||
item.tconstruct.Pattern.knifeblade.name=Modello per Lama di Coltello
|
||||
item.tconstruct.Pattern.chisel.name=Modello per Testa di Cesellatore
|
||||
item.tconstruct.Pattern.largerod.name=Modello per Manico Resistente
|
||||
item.tconstruct.Pattern.toughbinding.name=Modello per Legatura Resistente
|
||||
item.tconstruct.Pattern.largeplate.name=Modello per Piastra Grande
|
||||
item.tconstruct.Pattern.broadaxe.name=Modello per Testa d'Ascia Larga
|
||||
item.tconstruct.Pattern.scythe.name=Modello per Testa di Falce
|
||||
item.tconstruct.Pattern.excavator.name=Modello per Testa di Scavatore
|
||||
item.tconstruct.Pattern.largeblade.name=Modello per Grande Lama di Spada
|
||||
item.tconstruct.Pattern.hammerhead.name=Modello per Testa di Martello
|
||||
item.tconstruct.Pattern.fullguard.name=Modello per Guardia Piena
|
||||
item.tconstruct.Pattern.bowstring.name=Modello per Corda d'Arco
|
||||
item.tconstruct.Pattern.fletching.name=Modello per Testa di Freccia
|
||||
item.tconstruct.Pattern.arrowhead.name=Modello per Impennaggio
|
||||
|
||||
item.tconstruct.Pattern.blank_cast.name=Stampo
|
||||
item.tconstruct.MetalPattern.rod.name=Stampo per Manico
|
||||
item.tconstruct.MetalPattern.pickaxe.name=Stampo per Testa di Piccone
|
||||
item.tconstruct.MetalPattern.shovel.name=Stampo per Testa di Pala
|
||||
item.tconstruct.MetalPattern.axe.name=Stampo per Testa d'Ascia
|
||||
item.tconstruct.MetalPattern.swordblade.name=Stampo per Lama di Spada
|
||||
item.tconstruct.MetalPattern.largeguard.name=Stampo per Guardia Larga
|
||||
item.tconstruct.MetalPattern.mediumguard.name=Stampo per Guardia Media
|
||||
item.tconstruct.MetalPattern.crossbar.name=Stampo per Guardia Traversa
|
||||
item.tconstruct.MetalPattern.binding.name=Stampo per Legatura
|
||||
item.tconstruct.MetalPattern.frypan.name=Stampo per Padella
|
||||
item.tconstruct.MetalPattern.sign.name=Stampo per Testa di Cartello
|
||||
item.tconstruct.MetalPattern.knifeblade.name=Stampo per Lama di Coltello
|
||||
item.tconstruct.MetalPattern.chisel.name=Stampo per Testa di Cesellatore
|
||||
item.tconstruct.MetalPattern.largerod.name=Stampo per Manico Resistente
|
||||
item.tconstruct.MetalPattern.toughbinding.name=Stampo per Legatura Resistente
|
||||
item.tconstruct.MetalPattern.largeplate.name=Stampo per Piastra Grande
|
||||
item.tconstruct.MetalPattern.broadaxe.name=Stampo per Testa d'Ascia Larga
|
||||
item.tconstruct.MetalPattern.scythe.name=Stampo per Testa di Falce
|
||||
item.tconstruct.MetalPattern.excavator.name=Stampo per Testa di Scavatore
|
||||
item.tconstruct.MetalPattern.largeblade.name=Stampo per Grande Lama di Spada
|
||||
item.tconstruct.MetalPattern.hammerhead.name=Stampo per Testa di Martello
|
||||
item.tconstruct.MetalPattern.fullguard.name=Stampo per Guardia Piena
|
||||
item.tconstruct.MetalPattern.bowstring.name=Stampo per Corda d'Arco
|
||||
item.tconstruct.MetalPattern.fletching.name=Stampo per Testa di Freccia
|
||||
item.tconstruct.MetalPattern.arrowhead.name=Stampo per Impennaggio
|
||||
item.tconstruct.MetalPattern.ingot.name=Stampo per Lingotti
|
||||
|
||||
item.tconstruct.Materials.PaperStack.name=Pila di Carta
|
||||
item.tconstruct.Materials.SlimeCrystal.name=Cristallo di Slime
|
||||
@@ -238,6 +290,7 @@ StorageMetals.Steel.name=Blocco d'Acciaio
|
||||
StorageMetals.Ender.name=Blocco di Ender Solido
|
||||
|
||||
tile.decoration.stonetorch.name=Torcia
|
||||
tile.decoration.stoneladder.name=Scala a Pioli
|
||||
tile.CraftingStation.name=Tavolo da Lavoro
|
||||
|
||||
block.glass.pure.name=Vetro Chiaro
|
||||
@@ -447,32 +500,32 @@ parttype.steel=d'Acciaio
|
||||
parttype.blueslime=di Slime
|
||||
parttype.thaumium=di Taumium
|
||||
|
||||
toolpart.ToolRod=Manico
|
||||
toolpart.PickHead=Testa di Piccone
|
||||
toolpart.ShovelHead=Testa di Pala
|
||||
toolpart.AxeHead=Testa d'Ascia
|
||||
toolpart.Binding=Legatura
|
||||
toolpart.ToughBind=Legatura Resistente
|
||||
toolpart.ToughRod=Manico Resistente
|
||||
toolpart.LargePlate=Piastra Grande
|
||||
toolpart.SwordBlade=Lama di Spada
|
||||
toolpart.LargeGuard=Guardia Larga
|
||||
toolpart.MediumGuard=Guardia Media
|
||||
toolpart.Crossbar=Guardia Traversa
|
||||
toolpart.KnifeBlade=Lama di Coltello
|
||||
toolpart.FullGuard=Guardia Piena
|
||||
toolpart.FrypanHead=Padella
|
||||
toolpart.SignHead=Testa di Cartello
|
||||
toolpart.ChiselHead=Testa di Cesellatore
|
||||
toolpart.ScytheHead=Testa di Falce
|
||||
toolpart.LumberHead=Testa d'Ascia Larga
|
||||
toolpart.ExcavatorHead=Testa di Scavatore
|
||||
toolpart.ToolShard=Frammento
|
||||
toolpart.LargeSwordBlade=Grande Lama di Spada
|
||||
toolpart.HammerHead=Testa di Martello
|
||||
toolpart.Bowstring=Corda d'Arco
|
||||
toolpart.ArrowHead=Testa di Freccia
|
||||
toolpart.Fletching=Impennaggio
|
||||
toolpart.ToolRod=Manico %%material
|
||||
toolpart.PickHead=Testa di Piccone %%material
|
||||
toolpart.ShovelHead=Testa di Pala %%material
|
||||
toolpart.AxeHead=Testa d'Ascia %%material
|
||||
toolpart.Binding=Legatura %%material
|
||||
toolpart.ToughBind=Legatura Resistente %%material
|
||||
toolpart.ToughRod=Manico Resistente %%material
|
||||
toolpart.LargePlate=Piastra Grande %%material
|
||||
toolpart.SwordBlade=Lama di Spada %%material
|
||||
toolpart.LargeGuard=Guardia Larga %%material
|
||||
toolpart.MediumGuard=Guardia Media %%material
|
||||
toolpart.Crossbar=Guardia Traversa %%material
|
||||
toolpart.KnifeBlade=Lama di Coltello %%material
|
||||
toolpart.FullGuard=Guardia Piena %%material
|
||||
toolpart.FrypanHead=Padella %%material
|
||||
toolpart.SignHead=Testa di Cartello %%material
|
||||
toolpart.ChiselHead=Testa di Cesellatore %%material
|
||||
toolpart.ScytheHead=Testa di Falce %%material
|
||||
toolpart.LumberHead=Testa d'Ascia Larga %%material
|
||||
toolpart.ExcavatorHead=Testa di Scavatore %%material
|
||||
toolpart.ToolShard=Frammento %%material
|
||||
toolpart.LargeSwordBlade=Grande Lama di Spada %%material
|
||||
toolpart.HammerHead=Testa di Martello %%material
|
||||
toolpart.Bowstring=Corda d'Arco %%material
|
||||
toolpart.ArrowHead=Testa di Freccia %%material
|
||||
toolpart.Fletching=Impennaggio%%material
|
||||
|
||||
fluid.iron.molten=Ferro Fuso
|
||||
fluid.gold.molten=Oro Fuso
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 494 B |
Binary file not shown.
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -0,0 +1,67 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Blocks, all of the Blocks in AE.
|
||||
* DO NOT USE THESE WITHOUT COPYING THEM : ItemStack.copy() - is your friend.
|
||||
*/
|
||||
|
||||
public class Blocks
|
||||
{
|
||||
// World Gen
|
||||
public static ItemStack blkQuartzOre;
|
||||
public static ItemStack blkQuartz;
|
||||
|
||||
// Tech 1 ( non-ME )
|
||||
public static ItemStack blkGrinder;
|
||||
|
||||
// Tech 4? ( ME Storage )
|
||||
public static ItemStack blkCable_Colored[];
|
||||
|
||||
public static ItemStack blkAssembler;
|
||||
public static ItemStack blkController;
|
||||
public static ItemStack blkDrive;
|
||||
public static ItemStack blkPatternEncoder;
|
||||
public static ItemStack blkWireless;
|
||||
public static ItemStack blkTerminal;
|
||||
public static ItemStack blkChest;
|
||||
public static ItemStack blkInterface;
|
||||
public static ItemStack blkPartitioner;
|
||||
public static ItemStack blkCraftingTerminal;
|
||||
public static ItemStack blkStorageBus;
|
||||
|
||||
public static ItemStack blkAssemblerFieldWall;
|
||||
public static ItemStack blkHeatVent;
|
||||
public static ItemStack blkCraftingAccelerator;
|
||||
|
||||
public static ItemStack blkInputCablePrecision;
|
||||
public static ItemStack blkInputCableFuzzy;
|
||||
public static ItemStack blkInputCableBasic;
|
||||
|
||||
public static ItemStack blkOutputCablePrecision;
|
||||
public static ItemStack blkOutputCableFuzzy;
|
||||
public static ItemStack blkOutputCableBasic;
|
||||
public static ItemStack blkStorageBusFuzzy;
|
||||
|
||||
public static ItemStack blkLevelEmitter;
|
||||
public static ItemStack blkDarkCable;
|
||||
public static ItemStack blkIOPort;
|
||||
public static ItemStack blkCraftingMonitor;
|
||||
public static ItemStack blkStorageMonitor;
|
||||
public static ItemStack blkColorlessCable;
|
||||
public static ItemStack blkColorlessCableCovered;
|
||||
|
||||
public static ItemStack blkTransitionPlane;
|
||||
public static ItemStack blkCondenser;
|
||||
public static ItemStack blkEnergyCell;
|
||||
public static ItemStack blkPowerRelay;
|
||||
public static ItemStack blkQuantumRing;
|
||||
public static ItemStack blkQuantumLink;
|
||||
public static ItemStack blkQuartzGlass;
|
||||
public static ItemStack blkQuartzLamp;
|
||||
|
||||
// Used internally, best not to mess with this one...
|
||||
public static ItemStack blkPhantom;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class DimentionalCoord extends WorldCoord
|
||||
{
|
||||
private World w;
|
||||
private int dimId;
|
||||
|
||||
public DimentionalCoord( DimentionalCoord s )
|
||||
{
|
||||
super( s.x, s.y, s.z );
|
||||
w = s.w;
|
||||
dimId = s.dimId;
|
||||
}
|
||||
|
||||
public DimentionalCoord( World _w, int _x, int _y, int _z )
|
||||
{
|
||||
super(_x, _y, _z);
|
||||
w = _w;
|
||||
dimId = _w.provider.dimensionId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DimentionalCoord copy()
|
||||
{
|
||||
return new DimentionalCoord( this );
|
||||
}
|
||||
|
||||
public boolean isEqual( DimentionalCoord c )
|
||||
{
|
||||
return x == c.x && y == c.y && z == c.z && c.w == this.w;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if ( obj instanceof DimentionalCoord )
|
||||
return isEqual( (DimentionalCoord)obj );
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return super.hashCode() ^ dimId;
|
||||
}
|
||||
|
||||
public boolean isInWorld(World world)
|
||||
{
|
||||
return w == world;
|
||||
}
|
||||
|
||||
public World getWorld()
|
||||
{
|
||||
return w;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
package appeng.api;
|
||||
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
/**
|
||||
* An alternate version of ItemStack for AE to keep tabs on things easier, and to support larger storage.
|
||||
* stackSizes of getItemStack will be capped.
|
||||
*
|
||||
* You may hold on to these if you want, just make sure you let go of them when your not using them.
|
||||
*
|
||||
* Don't Implement.
|
||||
*
|
||||
* Construct with Util.createItemStack( ItemStack )
|
||||
*
|
||||
*/
|
||||
public interface IAEItemStack
|
||||
{
|
||||
/**
|
||||
* seriously?
|
||||
* @return the item id of the requested item.
|
||||
*/
|
||||
public int getItemID();
|
||||
|
||||
/**
|
||||
* the item's damage.
|
||||
* @return
|
||||
*/
|
||||
public int getItemDamage();
|
||||
|
||||
/**
|
||||
* obtain the NBT Data for the item.
|
||||
* @return
|
||||
*/
|
||||
public IAETagCompound getTagCompound();
|
||||
|
||||
/**
|
||||
* creates a standard MC ItemStack for the item.
|
||||
* @return new itemstack
|
||||
*/
|
||||
public ItemStack getItemStack();
|
||||
|
||||
/**
|
||||
* create a AE Item clone.
|
||||
* @return the copy.
|
||||
*/
|
||||
public IAEItemStack copy();
|
||||
|
||||
/**
|
||||
* number of items in the stack.
|
||||
* @return basically ItemStack.stackSize
|
||||
*/
|
||||
public long getStackSize();
|
||||
|
||||
/**
|
||||
* changes the number of items in the stack.
|
||||
* @param basically, ItemStack.stackSize = N
|
||||
*/
|
||||
public void setStackSize( long stackSize );
|
||||
|
||||
/**
|
||||
* Same as getStackSize, but for requestable items. ( LP )
|
||||
* @return basically itemStack.stackSize but for requestable items.
|
||||
*/
|
||||
long getCountRequestable();
|
||||
|
||||
/**
|
||||
* Same as setStackSize, but for requestable items. ( LP )
|
||||
* @return basically itemStack.stackSize = N but for setStackSize items.
|
||||
*/
|
||||
void setCountRequestable(long countRequestable);
|
||||
|
||||
/**
|
||||
* true, if the item can be crafted.
|
||||
* @return true, if it can be crafted.
|
||||
*/
|
||||
boolean isCraftable();
|
||||
|
||||
/**
|
||||
* change weather the item can be crafted.
|
||||
* @param isCraftable
|
||||
*/
|
||||
void setCraftable(boolean isCraftable);
|
||||
|
||||
/**
|
||||
* basically itemid and damage in one number..
|
||||
* @return
|
||||
*/
|
||||
int getDef();
|
||||
|
||||
/**
|
||||
* clears, requsetable, craftable, and stack sizes.
|
||||
*/
|
||||
public void reset();
|
||||
|
||||
/**
|
||||
* returns true, if the item can be crafted, requested, or extracted.
|
||||
* @return isThisRecordMeaningful
|
||||
*/
|
||||
boolean isMeaninful();
|
||||
|
||||
/**
|
||||
* is there NBT Data for this item?
|
||||
* @return if there is.
|
||||
*/
|
||||
boolean hasTagCompound();
|
||||
|
||||
/**
|
||||
* Combines two IAEItemStacks via addition.
|
||||
* @param option, to add to the current one.
|
||||
*/
|
||||
void add(IAEItemStack option);
|
||||
|
||||
/**
|
||||
* Adds more to the stack size...
|
||||
* @param i
|
||||
*/
|
||||
void incStackSize(long i);
|
||||
|
||||
/**
|
||||
* removes some from the stack size.
|
||||
*/
|
||||
void decStackSize(long i);
|
||||
|
||||
/**
|
||||
* adds items to the requestable
|
||||
* @param i
|
||||
*/
|
||||
void incCountRequestable(long i);
|
||||
|
||||
/**
|
||||
* removes items from the requsetable
|
||||
* @param i
|
||||
*/
|
||||
void decCountRequestable(long i);
|
||||
|
||||
/**
|
||||
* quick way to get access to the MC Item Definition.
|
||||
* @return
|
||||
*/
|
||||
Item getItem();
|
||||
|
||||
/**
|
||||
* write to a NBTTagCompound.
|
||||
* @param i
|
||||
*/
|
||||
void writeToNBT(NBTTagCompound i);
|
||||
|
||||
/**
|
||||
* Compare a IAEItemStack to another AEItemStack or a ItemStack.
|
||||
* @param obj
|
||||
* @return true if they are the same.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj);
|
||||
|
||||
/**
|
||||
* Compare the Ore Dictionary ID for this to another item.
|
||||
* @param oreID
|
||||
* @return
|
||||
*/
|
||||
public boolean sameOre( Object oreID );
|
||||
|
||||
/**
|
||||
* Slower for disk saving, but smaller/more efficient for packets.
|
||||
* @param data
|
||||
* @throws IOException
|
||||
*/
|
||||
public void writeToPacket(DataOutputStream data) throws IOException;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.nbt.NBTBase;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
/**
|
||||
* Don't cast this... either compare with it, or copy it.
|
||||
*
|
||||
* Don't Implement.
|
||||
*/
|
||||
public interface IAETagCompound {
|
||||
|
||||
/**
|
||||
* Create a copy ( the copy will not be a IAETagCompount, it will be a NBTTagCompound. )
|
||||
* @return
|
||||
*/
|
||||
NBTTagCompound clone();
|
||||
|
||||
/**
|
||||
* compare to other NBTTagCompounds or IAETagCompounds
|
||||
* @param a
|
||||
* @return true, if they are the same.
|
||||
*/
|
||||
@Override
|
||||
boolean equals( Object a );
|
||||
|
||||
/**
|
||||
* returns the special comparison for this tag.
|
||||
* @return
|
||||
*/
|
||||
IItemComparison getSpecialComparison();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
package appeng.api;
|
||||
|
||||
import appeng.api.me.items.IMemoryCard;
|
||||
import appeng.api.me.tiles.IColoredMETile;
|
||||
import appeng.api.me.util.IAssemblerPattern;
|
||||
import appeng.api.me.util.IMEInventory;
|
||||
import appeng.api.me.util.IMEInventoryUtil;
|
||||
import net.minecraft.inventory.InventoryCrafting;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IAppEngApi {
|
||||
|
||||
/**
|
||||
* Attempts to paint the block at the specified coords, the specified color, colors are based off of IColoredMETile.Colors
|
||||
* @param world
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @param color
|
||||
* @return if the block was painted, or not you can use this to damage your item if you want.
|
||||
*/
|
||||
boolean paintBlock(World world, int x, int y, int z, int color);
|
||||
|
||||
/**
|
||||
* Add new Grid Caches for use during run time, only use during loading phase.
|
||||
* @return
|
||||
*/
|
||||
IGridCacheRegistry getGridCacheRegistry();
|
||||
|
||||
/**
|
||||
* Add additional storage bus handlers to improve interplay with mod blocks that contains special inventories that function unlike vanilla chests.
|
||||
* AE uses this internally for barrels, dsu's, quantum chests, AE Networks and more. *
|
||||
* @return IExternalStorageRegistry
|
||||
*/
|
||||
IExternalStorageRegistry getExternalStorageRegistry();
|
||||
|
||||
/**
|
||||
* Add additional special comparison functionality, AE Uses this internally for Bees.
|
||||
* @return ISpecialComparisonRegistry
|
||||
*/
|
||||
ISpecialComparisonRegistry getSpecialComparsonRegistry();
|
||||
|
||||
/**
|
||||
* gives you access to extractItemsByRecipe, other then this theres not much use for this.
|
||||
* @param mei
|
||||
* @return
|
||||
*/
|
||||
IMEInventoryUtil getIMEInventoryUtil(IMEInventory mei);
|
||||
|
||||
/**
|
||||
* Lets you register your items as wireless terminals
|
||||
* @return
|
||||
*/
|
||||
IWirelessTermRegistery getWirelessRegistry();
|
||||
|
||||
/**
|
||||
* return an locateable object by its serial
|
||||
* used internally by AE for QNBs / Network Controllers
|
||||
* @param serial
|
||||
* @return
|
||||
*/
|
||||
Object getLocateableBySerial(Long serial);
|
||||
|
||||
/**
|
||||
* creates a new instance of IAEItemStack from a MC ItemStack
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
IAEItemStack createItemStack(ItemStack is);
|
||||
|
||||
/**
|
||||
* Creates a new instance of IItemList
|
||||
* @return
|
||||
*/
|
||||
IItemList createItemList();
|
||||
|
||||
/**
|
||||
* Allows you to register new cell types, these will function in drives
|
||||
* @return
|
||||
*/
|
||||
ICellRegistry getCellRegistry();
|
||||
|
||||
/**
|
||||
* Manage grinder recipes via API
|
||||
* @return
|
||||
*/
|
||||
IGrinderRecipeManager getGrinderRecipeManage();
|
||||
|
||||
/**
|
||||
* get access to the locatable registry
|
||||
* @return
|
||||
*/
|
||||
ILocateableRegistry getLocateableRegistry();
|
||||
|
||||
/**
|
||||
* a simple wrapper around the AEItemStack version on IMEInventory
|
||||
* @param inv
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
ItemStack addItemsToInv(IMEInventory inv, ItemStack is);
|
||||
|
||||
/**
|
||||
* a simple wrapper around the AEItemStack version on IMEInventory
|
||||
* @param inv
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
ItemStack extractItems(IMEInventory inv, ItemStack is);
|
||||
|
||||
/**
|
||||
* Blacklist this item from vanilla AE Terminals / IStorageCell
|
||||
* @param itemID
|
||||
* @param meta - if you use OreDictionary.WILDCARD_VALUE it will blacklist the entire itemID.
|
||||
*/
|
||||
void addBasicBlackList(int itemID, int meta);
|
||||
|
||||
/**
|
||||
* Acquire the inventory for a IStorageCell
|
||||
* @param i
|
||||
* @return
|
||||
*/
|
||||
IMEInventory getBasicCell(ItemStack i);
|
||||
|
||||
/**
|
||||
* checks if the item is a basic storage cell.
|
||||
* @param i
|
||||
* @return
|
||||
*/
|
||||
Boolean isBasicCell(ItemStack i);
|
||||
|
||||
/**
|
||||
* gives you access to assembler pattern inventories.
|
||||
* @param i
|
||||
* @return
|
||||
*/
|
||||
IAssemblerPattern getAssemblerPattern(ItemStack i);
|
||||
|
||||
/**
|
||||
* allows you to check if an item is an assembler pattern.
|
||||
* @param i
|
||||
* @return
|
||||
*/
|
||||
Boolean isAssemblerPattern(ItemStack i);
|
||||
|
||||
/**
|
||||
* allows you to check if a pattern is blank.
|
||||
* @param i
|
||||
* @return
|
||||
*/
|
||||
Boolean isBlankPattern(ItemStack i);
|
||||
|
||||
/**
|
||||
* gives you the ability to interface with AE Memory Cards.
|
||||
* @return
|
||||
*/
|
||||
IMemoryCard getMemoryCardHandler();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Lets you manipulate existing recipes.
|
||||
*/
|
||||
public interface IAppEngGrinderRecipe {
|
||||
|
||||
/**
|
||||
* the current input
|
||||
* @return input that the grinder will accept.
|
||||
*/
|
||||
public ItemStack getInput();
|
||||
|
||||
/**
|
||||
* lets you change the grinder recipe by changing its input.
|
||||
* @param input
|
||||
*/
|
||||
public void setInput( ItemStack input );
|
||||
|
||||
/**
|
||||
* gets the current output
|
||||
* @return output that the grinder will produce
|
||||
*/
|
||||
public ItemStack getOutput();
|
||||
|
||||
/**
|
||||
* allows you to change the output.
|
||||
* @param output
|
||||
*/
|
||||
public void setOutput( ItemStack output );
|
||||
|
||||
/**
|
||||
* Energy cost, in turns.
|
||||
* @return number of turns it takes to produce the output from the input.
|
||||
*/
|
||||
public int getEnergyCost();
|
||||
|
||||
/**
|
||||
* Allows you to adjust the number of turns
|
||||
* @param new number of turns to produce output.
|
||||
*/
|
||||
public void setEnergyCost(int c);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import appeng.api.me.util.IMEInventoryHandler;
|
||||
|
||||
/**
|
||||
* Registratio record for a Custom Cell handler.
|
||||
*/
|
||||
public interface ICellHandler {
|
||||
|
||||
/**
|
||||
* return true if the provided item is handled by your cell handler. ( AE May choose to skip this method, and just request a handler )
|
||||
* @param is
|
||||
* @return return true, if getCellHandler will not return null.
|
||||
*/
|
||||
boolean isCell( ItemStack is );
|
||||
|
||||
/**
|
||||
* return a new IMEHandler for the provided item.
|
||||
* @param is
|
||||
* @return if you cannot handle the provided item, return null.
|
||||
*/
|
||||
IMEInventoryHandler getCellHandler( ItemStack is );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import appeng.api.me.util.IMEInventoryHandler;
|
||||
|
||||
/**
|
||||
* Storage Cell Registry, used for specially implemented cells, if you just want to make a item act like a cell, or new cell with diffrent bytes, then you should probobly consider IStorageCell instead its consideriablly simpler.
|
||||
*/
|
||||
public interface ICellRegistry {
|
||||
|
||||
/**
|
||||
* Register a new handler.
|
||||
* @param h
|
||||
*/
|
||||
void addCellHandler( ICellHandler h );
|
||||
|
||||
/**
|
||||
* returns true if the provided item, can be handled by a handler in AE, ( AE May choose to skip this and just get the handler instead. )
|
||||
* @param is
|
||||
* @return returns true, if you can get a InventoryHandler for the item passed.
|
||||
*/
|
||||
boolean isCellHandled( ItemStack is );
|
||||
|
||||
/**
|
||||
* returns an IMEInventoryHandler for the provided item.
|
||||
* @param is
|
||||
* @return new IMEInventoryHandler, or null if there isn't one.
|
||||
*/
|
||||
IMEInventoryHandler getHandlerForCell( ItemStack is );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import appeng.api.me.util.IMEInventory;
|
||||
|
||||
/**
|
||||
* A Registration for a special storage handler.
|
||||
*
|
||||
*/
|
||||
public interface IExternalStorageHandler {
|
||||
|
||||
/**
|
||||
* if this can handle the provided inventory, return true. ( Generally skipped by AE, and it just calls getInventory )
|
||||
* @param te
|
||||
* @return true, if it can get a handler via getInventory
|
||||
*/
|
||||
boolean canHandle( TileEntity te, ForgeDirection d );
|
||||
|
||||
/**
|
||||
* if this can handle the given inventory, return the a IMEInventory implemnting class for it, if not return null
|
||||
* @param te
|
||||
* @return HandlerFor Inventory.
|
||||
*/
|
||||
IMEInventory getInventory( TileEntity te, ForgeDirection d );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
public interface IExternalStorageRegistry {
|
||||
|
||||
/**
|
||||
* A registry for StorageBus interactions
|
||||
* @param ei
|
||||
*/
|
||||
void addExternalStorageInterface( IExternalStorageHandler ei );
|
||||
|
||||
/**
|
||||
* returns the handler for a given tile / forge direction.
|
||||
* @param te
|
||||
* @param opposite
|
||||
* @return
|
||||
*/
|
||||
IExternalStorageHandler getHandler(TileEntity te, ForgeDirection opposite);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package appeng.api;
|
||||
|
||||
import appeng.api.me.util.IGridCache;
|
||||
|
||||
/**
|
||||
* A registry of grid caches to extend grid functionality.
|
||||
*/
|
||||
public interface IGridCacheRegistry {
|
||||
|
||||
/**
|
||||
* Register a new grid cache for use during operation, must be called during the loading phase.
|
||||
* @param cl
|
||||
* @return cache id ( can be used later to ask the grid for you cache. )
|
||||
*/
|
||||
int registerGridCache( Class<IGridCache> cl );
|
||||
|
||||
/**
|
||||
* requests a new instance of a grid cache for use, used internally
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
IGridCache[] createCacheInstance();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package appeng.api;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Lets you manipulate Grinder Recipes, by adding or editing existing ones.
|
||||
*/
|
||||
public interface IGrinderRecipeManager {
|
||||
|
||||
/**
|
||||
* Current list of registered recipes, you can modify this if you want too.
|
||||
* @return currentlyRegistredRecipes
|
||||
*/
|
||||
public List<IAppEngGrinderRecipe> getRecipes();
|
||||
|
||||
/**
|
||||
* add a new recipe the easy way, in -> out, how many turns.
|
||||
* @param in
|
||||
* @param out
|
||||
* @param cost
|
||||
*/
|
||||
public void addRecipe( ItemStack in, ItemStack out, int cost );
|
||||
|
||||
/**
|
||||
* Searches for a recipe for a given input, and returns it.
|
||||
* @param input
|
||||
* @return identified recipe, or null
|
||||
*/
|
||||
public IAppEngGrinderRecipe getRecipeForInput(ItemStack input);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Provider for special comparisons.
|
||||
* when an item is encountered AE Will request if the comparison function handles the item, by trying to request a IItemComparison class.
|
||||
*/
|
||||
public interface IItemComparisionProvider {
|
||||
|
||||
/**
|
||||
* should return a new IItemComparison, or return null if it dosn't handle the supplied item.
|
||||
* @param is
|
||||
* @return IItemComparison, or null
|
||||
*/
|
||||
IItemComparison getComparison( ItemStack is );
|
||||
|
||||
/**
|
||||
* Simple test for support ( AE generally skips this and calls the above function. )
|
||||
* @param stack
|
||||
* @return true, if getComparison will return a valid IItemComparison Object.
|
||||
*/
|
||||
public boolean canHandle( ItemStack stack);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package appeng.api;
|
||||
|
||||
|
||||
public interface IItemComparison {
|
||||
|
||||
public boolean sameAsPrecise( IItemComparison comp);
|
||||
|
||||
public boolean sameAsFuzzy(IItemComparison comp);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package appeng.api;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Represents a list of items in AE.
|
||||
*
|
||||
* Don't Implement.
|
||||
*
|
||||
* Construct with Util.createItemList()
|
||||
*
|
||||
*/
|
||||
public interface IItemList extends Iterable<IAEItemStack>
|
||||
{
|
||||
public void addStorage( IAEItemStack option ); // adds a stack as stored.
|
||||
public void addCrafting( IAEItemStack option ); // adds a stack as craftable.
|
||||
public void addRequestable( IAEItemStack option ); // adds a stack as requestable.
|
||||
public void add( IAEItemStack option ); // adds stack as is.
|
||||
|
||||
IAEItemStack getFirstItem();
|
||||
|
||||
public List<ItemStack> getItems();
|
||||
IAEItemStack findItem(IAEItemStack i);
|
||||
int size();
|
||||
|
||||
@Override
|
||||
public Iterator<IAEItemStack> iterator();
|
||||
public void setCurrentPriority(int priority);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package appeng.api;
|
||||
|
||||
/**
|
||||
* A Registry for locatable items, works based on serial numbers.
|
||||
*/
|
||||
public interface ILocateableRegistry {
|
||||
|
||||
/**
|
||||
* Attempts to find the object with the serial specifed, if it can it returns the object.
|
||||
* @param ser
|
||||
* @return requestedObject, or null
|
||||
*/
|
||||
public abstract Object findLocateableBySerial(long ser);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* A Registry of any special comparison handlers for AE To use.
|
||||
*
|
||||
*/
|
||||
public interface ISpecialComparisonRegistry {
|
||||
|
||||
/**
|
||||
* returns a handler it found for a specific item.
|
||||
* @param stack
|
||||
* @return TheHandler or null
|
||||
*/
|
||||
IItemComparison getSpecialComparion( ItemStack stack );
|
||||
|
||||
/**
|
||||
* Register a new cpecial comparison function with AE.
|
||||
* @param prov
|
||||
*/
|
||||
public void addComparisonProvider( IItemComparisionProvider prov );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import cpw.mods.fml.common.network.Player;
|
||||
|
||||
/**
|
||||
* A handler for a wireless terminal.
|
||||
*/
|
||||
public interface IWirelessTermHandler {
|
||||
|
||||
/**
|
||||
* return true, if usePower, hasPower, ect... can be called for the provided item.
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
boolean canHandle( ItemStack is );
|
||||
|
||||
/**
|
||||
* use an amount of power, in AE units
|
||||
* @param amount is in AE units ( 5 per MJ ), if you return false, the item should be dead and return false for hasPower
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
boolean usePower( Player player, float amount, ItemStack is );
|
||||
|
||||
/**
|
||||
* gets the power status of the item.
|
||||
* @param is
|
||||
* @return returns true if there is any power left.
|
||||
*/
|
||||
boolean hasPower( Player player, ItemStack is );
|
||||
|
||||
/**
|
||||
* Used to get the current key from the item.
|
||||
* @param player
|
||||
* @param item
|
||||
* @return
|
||||
*/
|
||||
String getEncryptionKey( ItemStack item );
|
||||
|
||||
/**
|
||||
* Encode the wireless frequency via the Controller.
|
||||
* @param item - the wireless terminal.
|
||||
* @param encKey - the wireless encryption key.
|
||||
* @param name - null for now.
|
||||
*/
|
||||
void setEncryptionKey( ItemStack item, String encKey, String name );
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import appeng.api.me.util.IMEInventoryHandler;
|
||||
|
||||
/**
|
||||
* Registratio record for a Custom Cell handler.
|
||||
*/
|
||||
public interface IWirelessTermRegistery {
|
||||
|
||||
/**
|
||||
* add thsi handler to the list of other wireless handler.
|
||||
* @param handler
|
||||
*/
|
||||
void registerWirelessHandler( IWirelessTermHandler handler );
|
||||
|
||||
/**
|
||||
* returns true if theres a handler for this item.
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
boolean isWirelessTerminal( ItemStack is );
|
||||
|
||||
/**
|
||||
* returns a register handler for the item in question, or null if there isn't one.
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
IWirelessTermHandler getWirelessTerminalHandler( ItemStack is );
|
||||
|
||||
/**
|
||||
* opens the wireless terminal gui, the wireless terminal item, must be in the active slot on the tool bar.
|
||||
*/
|
||||
void OpenWirelessTermainlGui( ItemStack item, World w, EntityPlayer player );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Items that have data, actions, or other interesting properties...
|
||||
* DO NOT USE THESE WITHOUT COPYING THEM : ItemStack.copy() - is your friend.
|
||||
*/
|
||||
public class Items
|
||||
{
|
||||
public static ItemStack toolQuartzAxe;
|
||||
public static ItemStack toolQuartzHoe;
|
||||
public static ItemStack toolQuartzShovel;
|
||||
public static ItemStack toolQuartzPick;
|
||||
public static ItemStack toolQuartzSword;
|
||||
public static ItemStack toolQuartzWrench;
|
||||
|
||||
public static ItemStack toolEntropyAccelerator;
|
||||
public static ItemStack toolVibrationCatalyst;
|
||||
public static ItemStack toolMassCannon;
|
||||
|
||||
public static ItemStack toolQuartzKnife;
|
||||
|
||||
public static ItemStack itemMemoryCard;
|
||||
|
||||
public static ItemStack itemCell1k;
|
||||
public static ItemStack itemCell4k;
|
||||
public static ItemStack itemCell16k;
|
||||
public static ItemStack itemCell64k;
|
||||
|
||||
public static ItemStack itemEncodedAsemblerPattern;
|
||||
public static ItemStack toolWirelessTerminal;
|
||||
|
||||
@Deprecated
|
||||
public static ItemStack itemWirelessTerminal;
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Access to stack-able simple items, these include resources...
|
||||
* Craftable ingredients, and a few simple items that don't have log of their own...
|
||||
* DO NOT USE THESE WITHOUT COPYING THEM : ItemStack.copy() - is your friend.
|
||||
*/
|
||||
public class Materials
|
||||
{
|
||||
// Tech 1
|
||||
public static ItemStack matWoodenGear;
|
||||
public static ItemStack matIronNugget;
|
||||
public static ItemStack matCrank;
|
||||
|
||||
// Grinder...
|
||||
public static ItemStack matQuartzDustNether;
|
||||
public static ItemStack matQuartzDust;
|
||||
public static ItemStack matIronDust;
|
||||
public static ItemStack matGoldDust;
|
||||
public static ItemStack matFlour;
|
||||
|
||||
// Tech 3
|
||||
public static ItemStack matSilicon;
|
||||
public static ItemStack matProcessorBasicUncooked;
|
||||
public static ItemStack matProcessorAdvancedUncooked;
|
||||
public static ItemStack matProcessorBasic;
|
||||
public static ItemStack matProcessorAdvanced;
|
||||
|
||||
// ME Construction...
|
||||
public static ItemStack matConversionMatrix;
|
||||
public static ItemStack matStorageCell;
|
||||
public static ItemStack matStorageBlock;
|
||||
public static ItemStack matStorageCluster;
|
||||
public static ItemStack matWireless;
|
||||
public static ItemStack matStorageCellHouseing;
|
||||
public static ItemStack matStorageCellHouseingFuzzy;
|
||||
public static ItemStack matBlankPattern;
|
||||
public static ItemStack matStorageSegment;
|
||||
public static ItemStack matFluxDust;
|
||||
public static ItemStack matFluxCrystal;
|
||||
public static ItemStack matFluxPearl;
|
||||
|
||||
// World gen...
|
||||
public static ItemStack matQuartz;
|
||||
|
||||
// Other items, such as upgrades.
|
||||
public static ItemStack matWirelessBooster;
|
||||
public static ItemStack matMatterBall;
|
||||
public static ItemStack matSingularity;
|
||||
public static ItemStack matEnderPearlDust;
|
||||
public static ItemStack matQuantumEntangledSingularity;
|
||||
|
||||
// TEST ITEMS!
|
||||
public static ItemStack testItem;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
If your considering using the AE API, please take a moment to read though the following.
|
||||
|
||||
Before we begin,
|
||||
AE's API will change as new features are added to the mod, I try to keep
|
||||
the changes to a minimum and try to prevent breaking changes, however it will
|
||||
probably happen at some point, and it can't truly be avoided in some cases.
|
||||
|
||||
The Grid
|
||||
AE refers to the "ME Network" internally as "The Grid" you will see methods such
|
||||
as getGrid(), setGrid() commonly, most interaction with networks, and creating new
|
||||
network blocks will involve the grid.
|
||||
|
||||
Network Enumeration
|
||||
If your trying to add a new ME Network Block, you must at minimum implement
|
||||
IGridTileEntity, and post the GridTileLoadEvent, and GridTileUnloadEvent when your
|
||||
tile is added / removed respectfully, if you fail to do this correctly, your tile,
|
||||
may ghost in the network, or cause invalid behaviour. You must inform AE that your
|
||||
tiles is joining and exiting the Network, with these events or you will not get notified
|
||||
of any network related features.
|
||||
|
||||
Thread Safety
|
||||
AE is not thread safe, do not attempt to use the API from other threads, this will
|
||||
result in crashes, and CME exceptions - and will not end well.
|
||||
|
||||
Blocks / Items / Materials
|
||||
AE Exposes its Original Item stacks via the Blocks, Items, Materials classes for easy access,
|
||||
don't change these, if you need to use an item make sure you .copy() it and use the copy, if
|
||||
failing to do so can result in dupe bugs irregular crafting patterns, and other issues.
|
||||
|
||||
AE and ItemStacks / Item Lists
|
||||
AE's API commonly refers to IAEItemStacks, and IItemLists this are internally implemented
|
||||
classes in AE, Do not Implement IAEItemstack, or IItemList, use the util methods to
|
||||
construct new instances them.
|
||||
|
||||
API Conflicts / Inclusion
|
||||
Refrain from including portions of the API as class files in your mod, unless required
|
||||
because your implementing an interface, even then its greatly appreciated if you put in
|
||||
the effort to get around this.
|
||||
|
||||
If you are not sure how to do this and plan on releasing your mod, I will be happy to explain
|
||||
what steps you can take to improve compatibility, and prevent conflicts no one likes crashes,
|
||||
and these cause crashes.
|
||||
|
||||
I've been trying to improve the documentation included in the API java files however things can be
|
||||
confusing or misleading, if you have questions after trying to figure something out I'm usually
|
||||
available on IRC.
|
||||
@@ -0,0 +1,60 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import appeng.api.events.GridTileUnloadEvent;
|
||||
import appeng.api.exceptions.AppEngTileMissingException;
|
||||
import appeng.api.me.tiles.IGridTileEntity;
|
||||
|
||||
public class TileRef<T> extends WorldCoord {
|
||||
|
||||
//private int dimension;
|
||||
private World w;
|
||||
boolean wasGrid;
|
||||
|
||||
public TileRef( TileEntity gte ) {
|
||||
super( gte.xCoord, gte.yCoord, gte.zCoord );
|
||||
TileEntity te = gte;
|
||||
wasGrid = te instanceof IGridTileEntity;
|
||||
w = te.worldObj;
|
||||
if ( te.worldObj == null )
|
||||
throw new RuntimeException("Tile has no world.");
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public T getTile() throws AppEngTileMissingException
|
||||
{
|
||||
// there might be a possible tick where we have TileRefs for unloaded tiles?
|
||||
if ( w.getChunkProvider().chunkExists(x >> 4, z >> 4) )
|
||||
{
|
||||
TileEntity te = w.getBlockTileEntity( x, y, z );
|
||||
if ( te != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
T ttt = (T) te; // I have no idea if this causes the exception or not...
|
||||
return ttt;
|
||||
}
|
||||
catch( ClassCastException err )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* was this a grid tile? if so inform the grid enum that something has derped.
|
||||
*/
|
||||
if ( wasGrid )
|
||||
MinecraftForge.EVENT_BUS.post( new GridTileUnloadEvent( null, w, this ) );
|
||||
|
||||
throw new AppEngTileMissingException( w, x,y,z);
|
||||
}
|
||||
|
||||
public DimentionalCoord getCoord() {
|
||||
return new DimentionalCoord( w, x, y, z );
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,230 @@
|
||||
package appeng.api;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
import cpw.mods.fml.relauncher.ReflectionHelper;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import appeng.api.me.util.IAssemblerPattern;
|
||||
import appeng.api.me.util.IMEInventory;
|
||||
import appeng.api.me.util.IMEInventoryHandler;
|
||||
import appeng.api.me.util.IMEInventoryUtil;
|
||||
|
||||
/**
|
||||
* Returns useful stuff of various sorts to access internal features and stuff, the meat of the important stuff is accessed here...
|
||||
*
|
||||
* Available IMCs:
|
||||
* "AppliedEnergistics", "add-grindable", "itemid,meta,itemid,meta,effort"
|
||||
* "AppliedEnergistics", "blacklist-cell" "itemid[,meta]"
|
||||
* "AppliedEnergistics", "blacklist-transitionplane" "itemid[,meta]"
|
||||
* "AppliedEnergistics", "whitelist-transitionplane" "itemid[,meta]"
|
||||
*
|
||||
*/
|
||||
public class Util
|
||||
{
|
||||
static private IAppEngApi api = null;
|
||||
|
||||
/**
|
||||
* All future API calls should be made via this method.
|
||||
* @return
|
||||
*/
|
||||
public static IAppEngApi getAppEngApi()
|
||||
{
|
||||
try {
|
||||
Class c = ReflectionHelper.getClass( Util.class.getClassLoader(), "appeng.common.AppEngApi" );
|
||||
api = (IAppEngApi) c.getMethod( "getInstance" ).invoke( c );
|
||||
} catch ( Throwable e) {
|
||||
return null;
|
||||
}
|
||||
return api;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the wireless terminal registry.
|
||||
* @return
|
||||
*/
|
||||
public static IWirelessTermRegistery getWirelessTermRegistery()
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getWirelessRegistry();
|
||||
}
|
||||
|
||||
/**
|
||||
* Find an object by its serial.
|
||||
* @param ser
|
||||
* @return LocatedObject or null
|
||||
*/
|
||||
public static Object getLocateableBySerial( long ser )
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getLocateableBySerial( ser );
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new AEItemstack.
|
||||
* @param is
|
||||
* @return newly generated AE Itemstack
|
||||
*/
|
||||
public static IAEItemStack createItemStack( ItemStack is )
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.createItemStack( is );
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple Wrapper of the insertion process..
|
||||
* @param inv
|
||||
* @param is
|
||||
* @return ItemsNotInserted or null
|
||||
*/
|
||||
public static ItemStack addItemsToInv( IMEInventory inv, ItemStack is )
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.addItemsToInv( inv, is );
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple Wrapper of the extraction process
|
||||
* @param inv
|
||||
* @param is
|
||||
* @return ItemsExtracted or null
|
||||
*/
|
||||
public static ItemStack extractItemsFromInv( IMEInventory inv, ItemStack is )
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.extractItems( inv, is );
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Blank ItemList
|
||||
* @return new itemlist.
|
||||
*/
|
||||
public static IItemList createItemList()
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.createItemList();
|
||||
}
|
||||
|
||||
/**
|
||||
* creates a new IMEInventoryUtil, only useful if you want to use the fancy get items by recipe functionaility.
|
||||
* @param ime
|
||||
* @return created InvUtil
|
||||
*/
|
||||
public static IMEInventoryUtil getIMEInventoryUtil( IMEInventory ime )
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getIMEInventoryUtil( ime );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the instance of the special comparison registry ( Bees / Trees ) that sort of stuff
|
||||
* @return specialComparisonRegistry
|
||||
*/
|
||||
public static ISpecialComparisonRegistry getSpecialComparisonRegistry()
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getSpecialComparsonRegistry();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the instance of the external storage registry - Storage Bus
|
||||
* @return externStorgeRegitry
|
||||
*/
|
||||
public static IExternalStorageRegistry getExternalStorageRegistry()
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getExternalStorageRegistry();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the instance of the Cell Registry
|
||||
* @return returns the cell registry
|
||||
*/
|
||||
public static ICellRegistry getCellRegistry()
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getCellRegistry();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets instance for the grinder recipe manager.
|
||||
* @return the grinder manager instance.
|
||||
*/
|
||||
public static IGrinderRecipeManager getGrinderRecipeManage()
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getGrinderRecipeManage();
|
||||
}
|
||||
|
||||
/** Is it a Blank Pattern? */
|
||||
public static Boolean isBlankPattern(ItemStack i)
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.isBlankPattern( i );
|
||||
}
|
||||
|
||||
/** Is it an IAssemblerPattern? */
|
||||
public static Boolean isAssemblerPattern(ItemStack i)
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.isAssemblerPattern( i );
|
||||
}
|
||||
|
||||
/** Gets the IAssemblerPattern of the Assembly Pattern. */
|
||||
public static IAssemblerPattern getAssemblerPattern(ItemStack i)
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getAssemblerPattern( i );
|
||||
}
|
||||
|
||||
/** Is it a IStorageCell, this will only return true for IStoreCells and not custom cells, you should probobly not use it unless you have a specific case. */
|
||||
public static Boolean isBasicCell(ItemStack i)
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.isBasicCell( i );
|
||||
}
|
||||
|
||||
/**
|
||||
* if the item is a ME Compatible Storage Cell of any type.
|
||||
* @param i
|
||||
* @return true, if it is a storage call.
|
||||
*/
|
||||
public static Boolean isCell(ItemStack i)
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return getCellRegistry().isCellHandled( i );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Interface to insert/extract from the Storage Cell for the item.
|
||||
* @param i
|
||||
* @return newly procured cell handler.
|
||||
*/
|
||||
public static IMEInventoryHandler getCell(ItemStack i)
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return getCellRegistry().getHandlerForCell( i );
|
||||
}
|
||||
|
||||
/**
|
||||
* Lets you access internal storage of IStorageCell's
|
||||
* @param i
|
||||
* @return only works with Basic Cells, not custom ones, suggested not to use.
|
||||
*/
|
||||
public static IMEInventory getBasicCell(ItemStack i)
|
||||
{
|
||||
if ( api == null ) return null;
|
||||
return api.getBasicCell( i );
|
||||
}
|
||||
|
||||
/**
|
||||
* Lets you blast list a specific item from being stored in basic cells, this works on any mod cells that use IStorageCell as well.
|
||||
* @param ItemID
|
||||
* @param Meta
|
||||
*/
|
||||
public static void addBasicBlackList( int ItemID, int Meta )
|
||||
{
|
||||
if ( api == null ) return;
|
||||
api.addBasicBlackList( ItemID, Meta );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
/**
|
||||
* This is used internally to return a location, in a few places, just use as is...
|
||||
*/
|
||||
public class WorldCoord
|
||||
{
|
||||
public int x;
|
||||
public int y;
|
||||
public int z;
|
||||
|
||||
public WorldCoord add(ForgeDirection direction, int length)
|
||||
{
|
||||
x += direction.offsetX * length;
|
||||
y += direction.offsetY * length;
|
||||
z += direction.offsetZ * length;
|
||||
return this;
|
||||
}
|
||||
|
||||
public WorldCoord subtract(ForgeDirection direction, int length)
|
||||
{
|
||||
x -= direction.offsetX * length;
|
||||
y -= direction.offsetY * length;
|
||||
z -= direction.offsetZ * length;
|
||||
return this;
|
||||
}
|
||||
|
||||
public WorldCoord add(int _x, int _y, int _z)
|
||||
{
|
||||
x += _x;
|
||||
y += _y;
|
||||
z += _z;
|
||||
return this;
|
||||
}
|
||||
|
||||
public WorldCoord subtract(int _x, int _y, int _z)
|
||||
{
|
||||
x -= _x;
|
||||
y -= _y;
|
||||
z -= _z;
|
||||
return this;
|
||||
}
|
||||
|
||||
public WorldCoord multiple(int _x, int _y, int _z)
|
||||
{
|
||||
x *= _x;
|
||||
y *= _y;
|
||||
z *= _z;
|
||||
return this;
|
||||
}
|
||||
|
||||
public WorldCoord divide(int _x, int _y, int _z)
|
||||
{
|
||||
x /= _x;
|
||||
y /= _y;
|
||||
z /= _z;
|
||||
return this;
|
||||
}
|
||||
|
||||
public WorldCoord(int _x, int _y, int _z)
|
||||
{
|
||||
x = _x;
|
||||
y = _y;
|
||||
z = _z;
|
||||
}
|
||||
|
||||
/**
|
||||
* Will Return NULL if it's at some diagonal!
|
||||
*/
|
||||
public ForgeDirection DirectionTo(WorldCoord loc)
|
||||
{
|
||||
int ox = x - loc.x;
|
||||
int oy = y - loc.y;
|
||||
int oz = z - loc.z;
|
||||
|
||||
int xlen = Math.abs( ox );
|
||||
int ylen = Math.abs( oy );
|
||||
int zlen = Math.abs( oz );
|
||||
|
||||
if ( loc.isEqual( this.copy().add( ForgeDirection.EAST, xlen ) ) )
|
||||
return ForgeDirection.EAST;
|
||||
|
||||
if ( loc.isEqual( this.copy().add( ForgeDirection.WEST, xlen ) ) )
|
||||
return ForgeDirection.WEST;
|
||||
|
||||
if ( loc.isEqual( this.copy().add( ForgeDirection.NORTH, zlen ) ) )
|
||||
return ForgeDirection.NORTH;
|
||||
|
||||
if ( loc.isEqual( this.copy().add( ForgeDirection.SOUTH, zlen ) ) )
|
||||
return ForgeDirection.SOUTH;
|
||||
|
||||
if ( loc.isEqual( this.copy().add( ForgeDirection.UP, ylen ) ) )
|
||||
return ForgeDirection.UP;
|
||||
|
||||
if ( loc.isEqual( this.copy().add( ForgeDirection.DOWN, ylen ) ) )
|
||||
return ForgeDirection.DOWN;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isEqual( WorldCoord c )
|
||||
{
|
||||
return x == c.x && y == c.y && z == c.z;
|
||||
}
|
||||
|
||||
public WorldCoord copy()
|
||||
{
|
||||
return new WorldCoord( x, y, z );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if ( obj instanceof WorldCoord )
|
||||
return isEqual( (WorldCoord)obj );
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "" + x + "," + y + "," + z;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return (y << 24) ^ x ^ z;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum ActionItems implements IConfigEnum<ActionItems> {
|
||||
Wrench,
|
||||
Close;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "FuzzyMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum CondenserOuput implements IConfigEnum {
|
||||
Trash,
|
||||
MatterBalls,
|
||||
Singularity;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "CondenserOutput";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum EnableDisable implements IConfigEnum {
|
||||
Enabled,
|
||||
Disabled;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "CondenserOutput";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
// do not change names..
|
||||
public enum FullnessMode implements IConfigEnum {
|
||||
Empty,
|
||||
Half,
|
||||
Full;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "FullnessMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum FuzzyMode implements IConfigEnum<FuzzyMode> {
|
||||
IgnoreAll(-1.0F),
|
||||
Percent_99(1.0F),
|
||||
Percent_75(0.75F),
|
||||
Percent_50(0.5F),
|
||||
Percent_25(0.25F);
|
||||
|
||||
public float breakPoint;
|
||||
|
||||
private FuzzyMode( float p )
|
||||
{
|
||||
breakPoint = p;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "FuzzyMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public interface IConfigEnum <E> {
|
||||
|
||||
IConfigEnum[] getValues();
|
||||
|
||||
int ordinal();
|
||||
|
||||
String getName();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum InterfaceBlockingMode implements IConfigEnum {
|
||||
NonBlocking,
|
||||
Blocking;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "InterfaceBlockingMode";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum InterfaceCraftingMode implements IConfigEnum {
|
||||
Craft,
|
||||
DontCraft;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "InterfaceCraftingMode";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum ItemFlow implements IConfigEnum<ItemFlow> {
|
||||
|
||||
READ, WRITE, READ_WRITE;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "ItemFlow";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum ListMode implements IConfigEnum<ListMode> {
|
||||
|
||||
WHITELIST, BLACKLIST;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "ListMode";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum MatchingMode implements IConfigEnum<MatchingMode> {
|
||||
Fuzzy,
|
||||
Precision;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return MatchingMode.values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "MatchingMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
// do not change names..
|
||||
public enum OperationMode implements IConfigEnum {
|
||||
Fill,
|
||||
Empty;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "OperationMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum PowerUnits implements IConfigEnum<PowerUnits> {
|
||||
AE,
|
||||
MJ,
|
||||
EU,
|
||||
UE;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "PowerUnits";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
// do not change names..
|
||||
public enum RedstoneModeInput implements IConfigEnum {
|
||||
Ignore,
|
||||
WhenOff,
|
||||
WhenOn,
|
||||
OnPulse;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RedstoneMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
// do not change names..
|
||||
public enum RedstoneModeInputOnOff implements IConfigEnum {
|
||||
Ignore,
|
||||
WhenOff,
|
||||
WhenOn;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RedstoneMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
// do not change names..
|
||||
public enum RedstoneModeOutput implements IConfigEnum {
|
||||
WhenOff,
|
||||
WhenOn;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RedstoneMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package appeng.api.config;
|
||||
|
||||
import net.minecraft.src.ModLoader;
|
||||
|
||||
public enum SearchBoxMode implements IConfigEnum<ActionItems> {
|
||||
Autosearch,
|
||||
Standard,
|
||||
NEIAutoSearch,
|
||||
NEIStandard;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
if ( ModLoader.isModLoaded( "NotEnoughItems" ) )
|
||||
return values();
|
||||
return new SearchBoxMode[]{ Autosearch, Standard };
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "SearchBoxMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum SortDir implements IConfigEnum
|
||||
{
|
||||
ASC,
|
||||
DESC;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "SortDir";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum SortOrder implements IConfigEnum
|
||||
{
|
||||
Name,
|
||||
Size,
|
||||
Priority,
|
||||
ItemID;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "SortOrder";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
// do not change names..
|
||||
public enum StackModeInput implements IConfigEnum {
|
||||
Single,
|
||||
Stack;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "StackMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
// do not change names..
|
||||
public enum StackModeOutput implements IConfigEnum {
|
||||
Single,
|
||||
Stack,
|
||||
Craft,
|
||||
CraftOnly;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "StackMode";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum TransferDir implements IConfigEnum
|
||||
{
|
||||
LEFT,
|
||||
RIGHT;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "TransferDir";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum ViewItems implements IConfigEnum
|
||||
{
|
||||
ALL,
|
||||
STORED,
|
||||
CRAFTABLE;
|
||||
|
||||
@Override
|
||||
public IConfigEnum[] getValues() {
|
||||
return values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "ViewItems";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.Event;
|
||||
|
||||
/**
|
||||
* Simple Alternative to WorldEvent, thanks to a certain mod that wants to crash on WorldEvents
|
||||
*/
|
||||
public class AEWorldEvent extends Event
|
||||
{
|
||||
final public World world;
|
||||
|
||||
public AEWorldEvent( World w )
|
||||
{
|
||||
world = w;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import appeng.api.WorldCoord;
|
||||
|
||||
/**
|
||||
* an error, basically just causes an update, use it if there is really an error, other wise just ignore it.
|
||||
*/
|
||||
public class GridErrorEvent extends AEWorldEvent {
|
||||
|
||||
public WorldCoord coord;
|
||||
public GridErrorEvent(World world, WorldCoord wc ) {
|
||||
super(world);
|
||||
coord = wc;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import appeng.api.WorldCoord;
|
||||
import appeng.api.me.util.IGridInterface;
|
||||
|
||||
/**
|
||||
* Posted when crafting options in a AE Network update, you can watch for them if you want to.
|
||||
*/
|
||||
public class GridPatternUpdateEvent extends AEWorldEvent {
|
||||
|
||||
final public WorldCoord coord;
|
||||
final public IGridInterface grid;
|
||||
|
||||
public GridPatternUpdateEvent(World world, WorldCoord wc, IGridInterface gi ) {
|
||||
super(world);
|
||||
grid = gi;
|
||||
coord = wc;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import appeng.api.WorldCoord;
|
||||
import appeng.api.me.util.IGridInterface;
|
||||
|
||||
/**
|
||||
* Posted when storage options in a AE Network update, such as a new Storage Bus or Cell is added, or removed.
|
||||
*/
|
||||
public class GridStorageUpdateEvent extends AEWorldEvent {
|
||||
|
||||
final public WorldCoord coord;
|
||||
final public IGridInterface grid;
|
||||
|
||||
public GridStorageUpdateEvent(World world, WorldCoord wc, IGridInterface gi ) {
|
||||
super(world);
|
||||
grid = gi;
|
||||
coord = wc;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import appeng.api.WorldCoord;
|
||||
import appeng.api.me.tiles.IGridTileEntity;
|
||||
|
||||
/**
|
||||
* The network has changed, and must be updated.
|
||||
*/
|
||||
public class GridTileConnectivityEvent extends AEWorldEvent {
|
||||
|
||||
public WorldCoord coord;
|
||||
public IGridTileEntity te;
|
||||
|
||||
public GridTileConnectivityEvent( IGridTileEntity _te, World world, WorldCoord wc ) {
|
||||
super(world);
|
||||
te = _te;
|
||||
coord = wc;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import appeng.api.WorldCoord;
|
||||
import appeng.api.me.tiles.IGridTileEntity;
|
||||
|
||||
/**
|
||||
* A Tile has been added to the world, and should be evaluated for Network Connectivity.
|
||||
*/
|
||||
public class GridTileLoadEvent extends AEWorldEvent {
|
||||
|
||||
public WorldCoord coord;
|
||||
public IGridTileEntity te;
|
||||
|
||||
public GridTileLoadEvent(IGridTileEntity _te, World world, WorldCoord wc ) {
|
||||
super(world);
|
||||
te = _te;
|
||||
coord = wc;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import appeng.api.WorldCoord;
|
||||
import appeng.api.me.tiles.IGridTileEntity;
|
||||
|
||||
/**
|
||||
* A Tile has been removed from the world, and should no longer be considered for connectivity.
|
||||
*/
|
||||
public class GridTileUnloadEvent extends AEWorldEvent {
|
||||
|
||||
public WorldCoord coord;
|
||||
public IGridTileEntity te;
|
||||
|
||||
public GridTileUnloadEvent(IGridTileEntity _te,World world, WorldCoord wc ) {
|
||||
super(world);
|
||||
te = _te;
|
||||
coord = wc;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraftforge.event.Event;
|
||||
import appeng.api.me.tiles.ILocateable;
|
||||
|
||||
/**
|
||||
* Used to Notify the Location Registry of objects, and their availability.
|
||||
*/
|
||||
public class LocateableEventAnnounce extends Event {
|
||||
|
||||
public enum LocateableEvent {
|
||||
Register, // Adds the locateable to the registry
|
||||
Unregister // Removes the Locatable from the registry
|
||||
};
|
||||
|
||||
final public ILocateable target;
|
||||
final public LocateableEvent change;
|
||||
|
||||
public LocateableEventAnnounce( ILocateable o, LocateableEvent ev )
|
||||
{
|
||||
target = o;
|
||||
change = ev;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import appeng.api.WorldCoord;
|
||||
import appeng.api.me.tiles.IGridTileEntity;
|
||||
|
||||
/**
|
||||
* Used by the MAC to trigger updates in its structure.
|
||||
*/
|
||||
public class MultiBlockUpdateEvent extends AEWorldEvent {
|
||||
|
||||
public WorldCoord coord;
|
||||
public IGridTileEntity te;
|
||||
|
||||
public MultiBlockUpdateEvent( IGridTileEntity _te, World world, WorldCoord wc ) {
|
||||
super(world);
|
||||
coord = wc;
|
||||
te = _te;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package appeng.api.exceptions;
|
||||
|
||||
public class AppEngException extends Exception
|
||||
{
|
||||
|
||||
private static final long serialVersionUID = -9051434206368465494L;
|
||||
|
||||
public AppEngException(String t)
|
||||
{
|
||||
super(t);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package appeng.api.exceptions;
|
||||
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
import net.minecraft.world.World;
|
||||
import appeng.api.DimentionalCoord;
|
||||
|
||||
public class AppEngTileMissingException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -3502227742711078681L;
|
||||
public DimentionalCoord dc;
|
||||
|
||||
@Override
|
||||
public void printStackTrace() {
|
||||
try
|
||||
{
|
||||
FMLLog.info( "[AppEng] Missing Tile at "+dc.x+", "+dc.y+", "+dc.z+" in +"+dc.getWorld().getWorldInfo().getVanillaDimension() );
|
||||
}
|
||||
catch( Throwable _ )
|
||||
{
|
||||
FMLLog.info( "[AppEng] Missing Tile at "+dc.x+", "+dc.y+", "+dc.z );
|
||||
}
|
||||
super.printStackTrace();
|
||||
}
|
||||
|
||||
public AppEngTileMissingException(World w, int x, int y, int z)
|
||||
{
|
||||
dc = new DimentionalCoord( w, x, y, z );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
package appeng.api.me.items;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/*
|
||||
* A simple AE interface used internally for PowerRelay charging.
|
||||
*/
|
||||
public interface IAEChargeableItem {
|
||||
|
||||
/*
|
||||
* Return the amount of energy not used.
|
||||
*
|
||||
* if you return the same amount out, as was passed in, then it will consider charging done.
|
||||
*
|
||||
*/
|
||||
public float addEnergy( ItemStack target, float energy );
|
||||
|
||||
/*
|
||||
* Must return true for the target item for it to be considered a charageable item.
|
||||
*/
|
||||
public boolean isChargeable( ItemStack it );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package appeng.api.me.items;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
public interface IAEWrench {
|
||||
|
||||
boolean canWrench(EntityPlayer player, int x, int y, int z);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package appeng.api.me.items;
|
||||
|
||||
/**
|
||||
* Like ILocationPatternItem, not really useful...
|
||||
*/
|
||||
public interface IAssemblerPatternItem
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package appeng.api.me.items;
|
||||
|
||||
/**
|
||||
* Like IAssemblerPatternItem, not really useful...
|
||||
*/
|
||||
public interface ILocationPatternItem {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package appeng.api.me.items;
|
||||
|
||||
/**
|
||||
* Some basic actions you can perform on Patterns.
|
||||
*/
|
||||
public interface IMEPatternItem {
|
||||
boolean isEncoded();
|
||||
String Type();
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package appeng.api.me.items;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
/**
|
||||
* used to interact with memory card items.
|
||||
*/
|
||||
public interface IMemoryCard {
|
||||
|
||||
/**
|
||||
* returns true if the item is in fact a memory card.
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
boolean isMemoryCard( ItemStack is );
|
||||
|
||||
/**
|
||||
* Configures the data stored on the memory card, the SettingsName, will be localized when displayed.
|
||||
* @param is
|
||||
* @param SettingsName
|
||||
* @param data
|
||||
*/
|
||||
void setMemoryCardContents( ItemStack is, String SettingsName, NBTTagCompound data );
|
||||
|
||||
/**
|
||||
* returns the settings name provided previously by setMemoryCardContents, or "AppEng.GuiITooltip.Blank" if there is no settings.
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
String getSettingsName( ItemStack is );
|
||||
|
||||
/**
|
||||
* returns the NBT Data previously saved by setMemoryCardContents, or an empty NBTCompound
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
NBTTagCompound getData( ItemStack is );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package appeng.api.me.items;
|
||||
|
||||
import appeng.api.IAEItemStack;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Any item which implements this can be treated as an IMEInventory via Util.getCell / Util.isCell
|
||||
* It automatically handles the internals and NBT data, which is both nice, and bad for you!
|
||||
*/
|
||||
public interface IStorageCell
|
||||
{
|
||||
/**
|
||||
* rv0 - If this returns something where N % 8 != 0 Then you will be shot on sight, or your car will explode, something like that least...
|
||||
* @param cellItem
|
||||
* @return numberofBytes
|
||||
*/
|
||||
int getBytes( ItemStack cellItem );
|
||||
|
||||
/**
|
||||
* rv0 - Determines the number of bytes used for any type included on the cell.
|
||||
* @param cellItem
|
||||
* @return numberOfBytes
|
||||
*/
|
||||
int BytePerType( ItemStack iscellItem );
|
||||
|
||||
/**
|
||||
* rv11 - Must be between 1 and 63, indicates how many types you want to store on the item.
|
||||
* @param cellItem
|
||||
* @return numberOfTypes
|
||||
*/
|
||||
int getTotalTypes( ItemStack cellItem );
|
||||
|
||||
/**
|
||||
* rv11 - allows you to fine tune which items are allowed on a given cell,
|
||||
* if you don't care, just return false;
|
||||
* As the handler for this type of cell is still the default cells, the normal AE black list is also applied.
|
||||
* @param cellItem
|
||||
* @param requsetedAddition
|
||||
* @return preventAdditionOfItem
|
||||
*/
|
||||
boolean isBlackListed( ItemStack cellItem, IAEItemStack requsetedAddition );
|
||||
|
||||
/**
|
||||
* rv11 - allows you to specify if this storage cell can be stored inside other storage cells, only set this for special items like the matter cannon that are not general purpose storage.
|
||||
* @return
|
||||
*/
|
||||
boolean storableInStorageCell();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package appeng.api.me.items;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IStorageComponent {
|
||||
|
||||
/**
|
||||
* rv11 - This isn't necessarily the same as if you make a storage cell out of it, but all of AE's default cells do it that way, its currently only used for the condenser.
|
||||
* @param cellItem
|
||||
* @return numberofBytes
|
||||
*/
|
||||
int getBytes( ItemStack is );
|
||||
|
||||
/**
|
||||
* rv11 - just true or false for the item stack.
|
||||
* @param is
|
||||
* @return
|
||||
*/
|
||||
boolean isStorageComponent( ItemStack is );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import appeng.api.WorldCoord;
|
||||
import appeng.api.me.util.IAssemblerCluster;
|
||||
|
||||
public interface IAssemblerMB {
|
||||
|
||||
/**
|
||||
* Do this:
|
||||
* return new WorldCoord( TileEntity.xCoord, TileEntity.yCoord, TileEntity.zCoord );
|
||||
*/
|
||||
public WorldCoord getLocation();
|
||||
public IAssemblerCluster getCluster();
|
||||
public void updateStatus( IAssemblerCluster ac );
|
||||
public boolean isComplete();
|
||||
|
||||
void calculateMultiblock( long instanceCalc );
|
||||
public long markViewed(long inst);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import appeng.api.me.util.IAssemblerPattern;
|
||||
|
||||
/**
|
||||
* Both useless and incredibly useful, maybe...
|
||||
*/
|
||||
public interface IAssemblerPatternProvider
|
||||
{
|
||||
public IAssemblerPattern provideAssemblerPattern();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import appeng.api.me.util.IMEInventoryHandler;
|
||||
|
||||
/**
|
||||
* Represents a tile that contributes to storage, such as a ME Chest, or ME Drive.
|
||||
*
|
||||
* Remember to trigger the appropriate storage update vents, when your getCellArray Changes. *
|
||||
*/
|
||||
public interface ICellContainer {
|
||||
|
||||
/**
|
||||
* Inventory of the tile for use with ME, should always return an valid list, never NULL.
|
||||
*/
|
||||
List<IMEInventoryHandler> getCellArray();
|
||||
|
||||
/**
|
||||
* the storage's priority.
|
||||
*/
|
||||
int getPriority();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import appeng.api.me.util.IMEInventoryHandler;
|
||||
|
||||
/**
|
||||
* Both useless and incredibly useful, maybe...
|
||||
*/
|
||||
public interface ICellProvider
|
||||
{
|
||||
/**
|
||||
* consume power to add an item to the storage system.
|
||||
* @param items
|
||||
* @param multiplier
|
||||
* @return
|
||||
*/
|
||||
public int usePowerForAddition( int items, int multiplier );
|
||||
|
||||
/**
|
||||
* returns a ME Inventory for interaction.
|
||||
*/
|
||||
public IMEInventoryHandler provideCell();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
/**
|
||||
* Used to signify which color a particular IGridTileEntity or IGridMachine is, you must implement both, if you wish to have color bias.
|
||||
*/
|
||||
public interface IColoredMETile
|
||||
{
|
||||
public static String[] Colors = {
|
||||
"Blue",
|
||||
"Black",
|
||||
"White",
|
||||
"Brown",
|
||||
"Red",
|
||||
"Yellow",
|
||||
"Green"
|
||||
};
|
||||
|
||||
/**
|
||||
* return true, if your block has a color, or false, if it dosn't.
|
||||
* this allows you to have a colored block that can pretend to be colorless.
|
||||
* @return true, if colored, false if not.
|
||||
*/
|
||||
boolean isColored();
|
||||
|
||||
/**
|
||||
* Change the color, AE dosn't call this except for its own blocks, its simply included for completeness.
|
||||
* @param offset
|
||||
*/
|
||||
void setColor( int offset );
|
||||
|
||||
/**
|
||||
* which color is this tile?
|
||||
* @return index into the above ColorsList.
|
||||
*/
|
||||
int getColor();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Some ME Tiles can be configured, generally via interface, but these let you do this programatically.
|
||||
*/
|
||||
public interface IConfigureableTile {
|
||||
|
||||
/** Switches configuration to next option... ( returns new configuration. ) */
|
||||
String prevConfiguration(String name);
|
||||
|
||||
/** Switches configuration to next option... ( returns new configuration. ) */
|
||||
String nextConfiguration(String name);
|
||||
|
||||
/** Gets a list off all the configurations... */
|
||||
List<String> getConfigurations();
|
||||
|
||||
/** Gets the options of a particular configuration. */
|
||||
List<String> getConfiguationOptions( String name );
|
||||
|
||||
/** Set a configuration to a specific option... ( returns the old one. ) */
|
||||
String setConfiguration(String name, String value);
|
||||
|
||||
/** The the current value for a configuration. */
|
||||
String getConfiguration(String name);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
public interface IConnectionSensitive {
|
||||
|
||||
void onMEConnectionsChanged( Set<ForgeDirection> connections, Set<ForgeDirection> visualConnections );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
/**
|
||||
* Used to signify which directions a particular IGridTileEntity or IGridMachine can connect to/from,
|
||||
* you must implement both, if you wish to have this functionality.
|
||||
*
|
||||
* Example Buses, that do not conenct in the direction of the bus.
|
||||
*/
|
||||
public interface IDirectionalMETile
|
||||
{
|
||||
|
||||
/**
|
||||
* return true if this tile can connect in a specific direction.
|
||||
* @param dir
|
||||
* @return true, if it can connect.
|
||||
*/
|
||||
boolean canConnect( ForgeDirection dir );
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import appeng.api.me.util.IMEInventoryHandler;
|
||||
|
||||
/**
|
||||
* Both useless and incredibly useful, maybe...
|
||||
*/
|
||||
public interface IExtendedCellProvider extends ICellProvider
|
||||
{
|
||||
|
||||
public IMEInventoryHandler provideCell( String Filter );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
/**
|
||||
* Cables will disconnect if its not enabled,
|
||||
* this means that they will fail to appear connected, example - MAC
|
||||
*/
|
||||
public interface IFulllyOptionalMETile extends IOptionalMETile {
|
||||
|
||||
boolean isSeperated();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
/**
|
||||
* Allows you to drain energy via ME Cables, if you only care if the grid is powered you only need IGridTileEntity.
|
||||
*/
|
||||
public abstract interface IGridMachine extends IGridTileEntity
|
||||
{
|
||||
/**
|
||||
* how much power this entity drains to run constantly.
|
||||
*/
|
||||
public abstract float getPowerDrainPerTick();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import appeng.api.DimentionalCoord;
|
||||
|
||||
/**
|
||||
* Create a connection to a normally not connected tile
|
||||
*/
|
||||
public interface IGridTeleport
|
||||
{
|
||||
DimentionalCoord[] findRemoteSide();
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import appeng.api.WorldCoord;
|
||||
import appeng.api.me.util.IGridInterface;
|
||||
|
||||
/**
|
||||
* Basic ME Grid Interface, informs you of the Grid power status, and other details.
|
||||
*/
|
||||
public abstract interface IGridTileEntity
|
||||
{
|
||||
/**
|
||||
* Do this:
|
||||
* return new WorldCoord( TileEntity.xCoord, TileEntity.yCoord, TileEntity.zCoord );
|
||||
*/
|
||||
public abstract WorldCoord getLocation();
|
||||
|
||||
/**
|
||||
* If your tile entity is valid return true.
|
||||
*/
|
||||
public boolean isValid();
|
||||
|
||||
/**
|
||||
* Informs you of either true or false.
|
||||
* if the power feed has stopped, or been continued, only called when changes happens, or when grid updates happen.
|
||||
*/
|
||||
public abstract void setPowerStatus(boolean hasPower);
|
||||
|
||||
/**
|
||||
* Yes if the device has a powered status.
|
||||
*/
|
||||
public abstract boolean isPowered();
|
||||
|
||||
/**
|
||||
* Return your last grid you got via setGrid.
|
||||
*/
|
||||
public IGridInterface getGrid();
|
||||
|
||||
/**
|
||||
* Informs you of your new grid, YOU MUST return this via getGrid.
|
||||
* Store for later.
|
||||
*/
|
||||
public void setGrid(IGridInterface gi);
|
||||
|
||||
/**
|
||||
* Return worldObj
|
||||
*/
|
||||
public World getWorld();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
public interface ILocateable
|
||||
{
|
||||
/**
|
||||
* returns the serial for a locateable object.
|
||||
* @return
|
||||
*/
|
||||
long getLocatableSerial();
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
/**
|
||||
* Used to access information about AE's various power accepting blocks for monitoring purposes.
|
||||
*
|
||||
*/
|
||||
public interface IMEPowerStorage {
|
||||
|
||||
/**
|
||||
* ME power storage asset, pass the amount you want to use, and what you want to use it for.
|
||||
* @param use
|
||||
* @param for_what
|
||||
* @return if you can use it.
|
||||
*/
|
||||
boolean useMEEnergy( float use, String for_what );
|
||||
|
||||
/**
|
||||
* Add energy to an ME Power storage.
|
||||
* @param amt that was not added to storage myEnergy = addMEPower( myEnergy ); // pushes your power into the network.
|
||||
* @return
|
||||
*/
|
||||
public double addMEPower( double amt );
|
||||
|
||||
/**
|
||||
* returns the current maximum power ( this can change :P )
|
||||
*/
|
||||
public double getMEMaxPower();
|
||||
|
||||
/**
|
||||
* returns the current AE Power Level, this may exceed getMEMaxPower()
|
||||
*/
|
||||
public double getMECurrentPower();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
/**
|
||||
* By simply implenting this, the networks can be become aware of a block they touch, but they don't propogate signal or really belong to a network.
|
||||
* Not sure what it would be used for to be honest beyond the power relay.
|
||||
*/
|
||||
public interface INonSignalBlock {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
/**
|
||||
* Cables will connect, but signal will not propagate. ( IFulllyOptionalMETile disconnects )
|
||||
*/
|
||||
public interface IOptionalMETile {
|
||||
|
||||
/**
|
||||
* if false, the signal will not propigate via this tile, remember to use connectivity events.
|
||||
* @return
|
||||
*/
|
||||
public boolean isEnabled();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
/**
|
||||
* Please note that none of these methods will cause a block update,
|
||||
* if you use set ori/spin/cycle, must mark the block for update if it was already sent to the client.
|
||||
*/
|
||||
public interface IOrientableTile {
|
||||
|
||||
// returns the main direction for rotation.
|
||||
ForgeDirection getPrimaryOrientation();
|
||||
|
||||
// used for up or down orientation to spin the tile around, 0 - 3 clockwise ( probobly )
|
||||
int getSpin();
|
||||
|
||||
// returns the main direction for rotation.
|
||||
void setPrimaryOrientation( ForgeDirection s );
|
||||
|
||||
// used for up or down orientation.
|
||||
void setSpin( int spin );
|
||||
|
||||
// acts like a wrench was used on it, if a wrench does nothing, this does nothing.
|
||||
void cycleOrientation();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
public interface IPriorityTile
|
||||
{
|
||||
/**
|
||||
* gets the current priroity, can be negitive or positive.
|
||||
* implemented by storage systems, and is used for sorting.
|
||||
* @return
|
||||
*/
|
||||
int getPriority();
|
||||
|
||||
/**
|
||||
* change the priority.
|
||||
* @param p
|
||||
*/
|
||||
void setPriority( int p );
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* An IPushable should return what dosn't fit, so that the crafting request cannot complete,
|
||||
* stalling the action and saving your resources.
|
||||
*/
|
||||
public interface IPushable
|
||||
{
|
||||
/**
|
||||
* is this pushable busy?
|
||||
* @return
|
||||
*/
|
||||
boolean isBusy();
|
||||
|
||||
/**
|
||||
* Attempt to send an item.
|
||||
* @param out
|
||||
* @return
|
||||
*/
|
||||
ItemStack pushItem( ItemStack out );
|
||||
|
||||
/**
|
||||
* Test if a push is possible.
|
||||
* @param out
|
||||
* @return
|
||||
*/
|
||||
boolean canPushItem(ItemStack out);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import appeng.api.IItemList;
|
||||
|
||||
public interface IStorageAware {
|
||||
|
||||
/**
|
||||
* if your GridTile Implements this interface, the Network will notify it of changes, and send you a list of the contents so you can updates statues, WAY BETTER then polling.
|
||||
* @param iss
|
||||
*/
|
||||
void onNetworkInventoryChange( IItemList iss );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import appeng.api.IAEItemStack;
|
||||
|
||||
public interface IStorageMonitor {
|
||||
|
||||
/**
|
||||
* Get the item being displayed on the storage monitor, in AEItemstack Form, you can use that to get the equivalent MC ItemStack, if you need it.
|
||||
* If the quantity is important remember to use getStackSize() on the IAEItemStack,and not ItemStack.stackSize
|
||||
* @return
|
||||
*/
|
||||
IAEItemStack getItem();
|
||||
|
||||
/**
|
||||
* Get the current locked state of the access terminal.
|
||||
* @return
|
||||
*/
|
||||
boolean isLocked();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
public interface ITileCable {
|
||||
|
||||
public boolean coveredConnections();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import net.minecraft.inventory.IInventory;
|
||||
|
||||
/**
|
||||
* used to allow you to inspect, and configure a Export / Import / Storage Bus
|
||||
* Export and Import buses also implement IConfigureableTile, which may be of interest.
|
||||
*/
|
||||
public interface ITileIOCable {
|
||||
|
||||
public enum Version {
|
||||
Basic, Precision, Fuzzy
|
||||
};
|
||||
|
||||
/**
|
||||
* returns one of the above, to indicate which version of the bus it is.
|
||||
*/
|
||||
Version getVersion();
|
||||
|
||||
/**
|
||||
* Returns an IInventory that represents the configuration.
|
||||
*/
|
||||
IInventory getConfiguration();
|
||||
|
||||
/**
|
||||
* Returns the name of the bus..
|
||||
*/
|
||||
String getName();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import appeng.api.me.util.IMEInventory;
|
||||
import appeng.api.me.util.InterfaceCraftingResponse;
|
||||
|
||||
/**
|
||||
* Implemented by the ME Interface
|
||||
* give direct access to some more complicated logic, in a simpler way, was used for earily LP integration.
|
||||
*/
|
||||
public interface ITileInterfaceApi {
|
||||
|
||||
/**
|
||||
* how much space is available.
|
||||
* @param i
|
||||
* @param MaxNeeded, a cut off where you stop caring
|
||||
* @return totalAmountNeeded
|
||||
*/
|
||||
int apiCurrentAvailableSpace(ItemStack i, int MaxNeeded);
|
||||
|
||||
/**
|
||||
* Attempt to extract an item from the network.
|
||||
* @param i, item to extract.
|
||||
* @param doExtract, if you don't its just a simulation.
|
||||
* @return anyExtracted Items, or null
|
||||
*/
|
||||
ItemStack apiExtractNetworkItem(ItemStack i, boolean doExtract);
|
||||
|
||||
/**
|
||||
* Adds an item to the network
|
||||
* @param i
|
||||
* @param doAdd, or simulate
|
||||
* @return any items that couldn't be added, or nul
|
||||
*/
|
||||
ItemStack apiAddNetworkItem(ItemStack i, boolean doAdd);
|
||||
|
||||
/**
|
||||
* returns a list of ItemStacks that are contined in the network.
|
||||
* @return
|
||||
*/
|
||||
List<ItemStack> apiGetNetworkContents();
|
||||
|
||||
/**
|
||||
* get access to the networks IMEInventory.
|
||||
* @return
|
||||
*/
|
||||
IMEInventory getApiArray();
|
||||
|
||||
/**
|
||||
* get a list of items that can be crafted by the network.
|
||||
* @return
|
||||
*/
|
||||
List<ItemStack> getCraftingOptions();
|
||||
|
||||
/**
|
||||
* get access to the crafting patterns.
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
List<InterfaceCraftingPattern> findCraftingPatterns( ItemStack req );
|
||||
|
||||
/**
|
||||
* issue a new crafting request.
|
||||
* @param req
|
||||
* @param enableRecursive
|
||||
* @return
|
||||
*/
|
||||
InterfaceCraftingResponse requestCrafting( ItemStack req, boolean enableRecursive );
|
||||
|
||||
/**
|
||||
* if there is anything at all available it returns true.
|
||||
* @return
|
||||
*/
|
||||
boolean containsItems();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package appeng.api.me.tiles;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class InterfaceCraftingPattern {
|
||||
|
||||
/**
|
||||
* list of all the inputs.
|
||||
*/
|
||||
public List<ItemStack> Inputs;
|
||||
|
||||
/**
|
||||
* the output of the pattern.
|
||||
*/
|
||||
public ItemStack Output;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package appeng.api.me.util;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import appeng.api.me.tiles.IGridTileEntity;
|
||||
|
||||
/**
|
||||
* ME Network, aka Grid related features and functionality.
|
||||
*/
|
||||
public class Grid
|
||||
{
|
||||
/**
|
||||
* Attempts to find a grid interface for the specified location.
|
||||
* @param w
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @return interfaceForGrid
|
||||
*/
|
||||
public static IGridInterface getGridInterface(World w, int x, int y, int z)
|
||||
{
|
||||
IGridTileEntity te = getGridEntity(w, x, y, z);
|
||||
|
||||
if (te != null)
|
||||
{
|
||||
return te.getGrid();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple test to see if the tile at the specified location is in fact a grid entity.
|
||||
* @param w
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @return isTileGridEntity
|
||||
*/
|
||||
public static boolean isGridEntity(World w, int x, int y, int z)
|
||||
{
|
||||
return getGridEntity(w, x, y, z) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the grid entity at the given location, or null if its not a grid entity.
|
||||
* @param w
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @return gridEntity
|
||||
*/
|
||||
public static IGridTileEntity getGridEntity(World w, int x, int y, int z)
|
||||
{
|
||||
TileEntity te = w.getBlockTileEntity(x, y, z);
|
||||
|
||||
if (te instanceof IGridTileEntity)
|
||||
{
|
||||
return (IGridTileEntity)te;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests if the given grid entity is on a Network.
|
||||
* @param w
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @return isOnNetwork
|
||||
*/
|
||||
public static boolean isOnGrid(World w, int x, int y, int z)
|
||||
{
|
||||
IGridTileEntity te = getGridEntity(w, x, y, z);
|
||||
|
||||
if (te != null)
|
||||
{
|
||||
return te.getGrid() != null;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package appeng.api.me.util;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
/**
|
||||
* Definition for a MAC
|
||||
*
|
||||
*/
|
||||
public interface IAssemblerCluster {
|
||||
|
||||
/**
|
||||
* cycles the cpus, should be called once a tick, if called more, crafting will accelerate.
|
||||
*/
|
||||
public void cycleCpus();
|
||||
|
||||
/**
|
||||
* Tells the MAC one of the cpus was used.
|
||||
*/
|
||||
void addCraft();
|
||||
|
||||
/**
|
||||
* is there a CPU available for Crafting?
|
||||
* @return hasCPUReady
|
||||
*/
|
||||
boolean canCraft();
|
||||
|
||||
/**
|
||||
* Gets a TileAssembler from the MAC
|
||||
* @param assemblerOffset
|
||||
* @return TileEntity for that Assembler or Null
|
||||
*/
|
||||
TileEntity getAssembler( int assemblerOffset );
|
||||
|
||||
public int getLastOffset();
|
||||
|
||||
public void setLastOffset( int x );
|
||||
}
|
||||
Loaded 100 of 170 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user