From c842653bc0e177a8903c000ef980858b30c19806 Mon Sep 17 00:00:00 2001 From: mymagadsl Date: Tue, 23 Dec 2014 00:19:37 +0800 Subject: [PATCH 01/95] Update zh_TW.lang --- resources/assets/enderio/lang/zh_TW.lang | 502 ++++++++++++++++------- 1 file changed, 343 insertions(+), 159 deletions(-) diff --git a/resources/assets/enderio/lang/zh_TW.lang b/resources/assets/enderio/lang/zh_TW.lang index c49ec60a..2307a540 100644 --- a/resources/assets/enderio/lang/zh_TW.lang +++ b/resources/assets/enderio/lang/zh_TW.lang @@ -1,22 +1,21 @@ //*** Ender IO *****// //Power -enderio.power.mj=MJ enderio.power.rf=RF enderio.power.tick=/t enderio.power.maxOutput=最大輸出 //Ender IO / Enderface -tile.blockEnderIo.name=末影接口 +tile.blockEnderIo.name=終界接口 tile.blockEnderIo.tooltip.detailed.line1=允許遠程訪問附近的 tile.blockEnderIo.tooltip.detailed.line2=方塊 tile.blockEnderIo.tooltip.detailed.line3=使用旅行錨或 tile.blockEnderIo.tooltip.detailed.line4=旅行權杖 -item.enderio.itemEnderface.name=末影面板 +item.enderio.itemEnderface.name=終界面板 //Conduits -enderio.blockConduitBundle=導管束 +enderio.blockConduitBundle=導管接口 enderio.blockConduitFacade=導管框架 item.enderio.itemConduitFacade.name=導管框架 item.enderio.itemConduitFacade.tooltip.detailed.line1=可放入粉刷機粉刷 @@ -26,7 +25,7 @@ item.enderio.itemConduitFacade.tooltip.detailed.line4=導管框架隱藏 enderio.itemPowerConduit.name=能量導管 enderio.itemPowerConduitEnhanced.name=強化能量導管 -enderio.itemPowerConduitEnder.name=末影能量導管 +enderio.itemPowerConduitEnder.name=終界能量導管 enderio.itemRedstoneConduit.name=紅石導管 enderio.itemRedstoneConduitSwitch.name=導管開關 @@ -34,7 +33,7 @@ enderio.itemRedstoneConduitInsulated.name=絕緣紅石導管 enderio.itemLiquidConduit.name=液體導管 enderio.itemLiquidConduitAdvanced.name=加壓液體導管 -enderio.itemLiquidConduitEnder.name=末影液體導管 +enderio.itemLiquidConduitEnder.name=終界液體導管 enderio.itemLiquidConduit.lockedType=液體種類鎖定為 enderio.itemLiquidConduit.unlockedType=液體種類解鎖 @@ -81,42 +80,63 @@ enderio.itemGasConduit.tooltip.maxExtract=最大提取: enderio.itemGasConduit.tooltip.maxIo=最大IO: enderio.itemGasConduit.tooltip.detailed.line1=傳送和通用機械兼容的氣體 +enderio.itemMEConduit.name=ME導管 +enderio.itemMEConduitDense.name=緻密ME導管 + //Materials enderio.itemMaterial.name=材料 enderio.silicon.name=硅 -enderio.conduitBinder.name=管道箍 -enderio.binderComposite.name=復合管道箍 -enderio.phasedIronNugget.name=脈沖鐵合金粒 +enderio.conduitBinder.name=導管粘合劑 +enderio.binderComposite.name=粘合胚料 +enderio.phasedIronNugget.name=脈沖鐵粒 tile.blockDarkIronBars.name=玄鐵柵欄 -tile.blockEndermanSkull.name=末影人頭顱 -enderio.blastResistant=爆炸免疫 +tile.blockEndermanSkull.name=終界人頭顱 +tile.blockEndermanSkull.base.name=終界人頭 +tile.blockEndermanSkull.reanimated.name=復蘇終界人頭 +tile.blockEndermanSkull.tormented.name=禁錮終界人頭 +enderio.blastResistant=防爆 enderio.lightEmitter=發光 +enderio.tooltip.isBeaconBase=可用于當作信標底座 //Fluids fluid.nutrient_distillation=營養精華液 +tile.fluid.nutrient_distillation.name=營養精華液 +item.bucketNutrient_distillation.name=桶裝營養精華液 + fluid.hootch=烈酒 +tile.fluid.hootch.name=烈酒 +item.bucketHootch.name=桶裝烈酒 fluid.fire_water=火焰水 +tile.fluid.fire_water.name=火焰水 +item.bucketFire_water.name=桶裝火焰水 fluid.rocket_fuel=火箭燃料 -item.bucketNutrient_distillation.name=營養精華液桶 -item.bucketHootch.name=烈酒桶 -item.bucketRocket_fuel.name=火箭燃料桶 -item.bucketFire_water.name=火焰水桶 +tile.fluid.rocket_fuel.name=火箭燃料 +item.bucketRocket_fuel.name=桶裝火箭燃料 +fluid.eio.xpjuice=液態XP +tile.fluid.eio.xpjuice.name=液態XP +item.bucketXpjuice.name=桶裝液態XP + + enderio.fluid.millibucket.abr=mB enderio.fuel.tooltip.heading=燃料詳情 enderio.fuel.tooltip.burnTime=燃燒時間 enderio.fluid.millibucketsTick=mB/t -enderio.gas.gasTick=氣體/t +coolant.tooltip.heading=冷卻劑 +enderio.fuel.tooltip.degreesPerBucket=每單位一桶 +enderio.gas.gasTick=Gas/t //Materials enderio.itemMachinePart.name=機器零件 -enderio.machineChassi.name=機器外殼 +enderio.machineChassi.name=機器框架 enderio.basicGear.name=基礎齒輪 enderio.pulsatingCrystal.name=脈沖晶體 enderio.vibrantCrystal.name=充能晶體 +enderio.enderCrystal.name=終界晶體 +enderio.attractorCrystal.name=誘引晶體 enderio.darkGrindingBall.name=玄鐵鋼珠 -enderio.darkGrindingBall.tooltip.detailed.line1=SAG磨粉機研磨珠 +enderio.darkGrindingBall.tooltip.detailed.line1=SAG磨粉機研磨球 enderio.darkGrindingBall.tooltip.detailed.line2=最大輸出 enderio.darkGrindingBall.tooltip.detailed.line3=額外輸出 enderio.darkGrindingBall.tooltip.detailed.line4=功率降低 @@ -128,22 +148,23 @@ tile.blockReinforcedObsidian.name=強化黑曜石 tile.blockFusedQuartz.name=石英玻璃 enderio.blockFusedQuartz.fusedQuartz.name=石英玻璃 enderio.blockFusedQuartz.fusedGlass.name=純凈玻璃 -enderio.blockFusedQuartz.enlightenedFusedQuartz.name=發光石英玻璃 -enderio.blockFusedQuartz.enlightenedFusedGlass.name=發光純凈玻璃 +enderio.blockFusedQuartz.enlightenedFusedQuartz.name=螢光石英玻璃 +enderio.blockFusedQuartz.enlightenedFusedGlass.name=螢光純凈玻璃 item.enderio.itemFusedQuartzFrame.name=石英玻璃框 enderio.itemPowderIngot=粉和粒 //Alloys -enderio.itemAlloy.name=合金 -enderio.electricalSteel.name=磁鋼 -enderio.energeticAlloy.name=充能合金 -enderio.phasedGold.name=脈沖合金 -enderio.redstoneAlloy.name=紅石合金 -enderio.conductiveIron.name=導電鐵 -enderio.phasedIron.name=脈沖鐵合金 +enderio.itemAlloy.name=合金錠 +enderio.electricalSteel.name=磁鋼錠 +enderio.energeticAlloy.name=充能合金錠 +enderio.phasedGold.name=脈沖合金錠 +enderio.redstoneAlloy.name=紅石合金錠 +enderio.conductiveIron.name=導電鐵錠 +enderio.phasedIron.name=脈沖鐵錠 enderio.vibrantNugget.name=脈沖合金粒 -enderio.darkSteel.name=玄鐵鋼 +enderio.darkSteel.name=玄鋼錠 +enderio.soularium.name=魂金錠 tile.blockIngotStorage.name=金屬塊 tile.enderio.electricalSteel.name=磁鋼塊 @@ -151,9 +172,10 @@ tile.enderio.energeticAlloy.name=充能合金塊 tile.enderio.phasedGold.name=脈沖合金塊 tile.enderio.redstoneAlloy.name=紅石合金塊 tile.enderio.conductiveIron.name=導電鐵塊 -tile.enderio.phasedIron.name=脈沖鐵合金塊 +tile.enderio.phasedIron.name=脈沖鐵塊 tile.enderio.vibrantNugget.name=脈沖合金粒塊 -tile.enderio.darkSteel.name=玄鐵鋼塊 +tile.enderio.darkSteel.name=玄鋼塊 +tile.enderio.soularium.name=魂金塊 //Powder / Ingot enderio.powderCoal.name=煤粉 @@ -161,13 +183,14 @@ enderio.powderIron.name=鐵粉 enderio.powderGold.name=金粉 enderio.powderCopper.name=銅粉 enderio.powderTin.name=錫粉 -enderio.powderEnder.name=末影珍珠粉 +enderio.powderEnder.name=終界珍珠粉 +enderio.ingotEnderiumBase.name=Enderium Base //Capacitors enderio.itemBasicCapacitor.name=電容 enderio.basicCapacitor.name=基礎電容 enderio.activatedCapacitor.name=雙層電容 -enderio.enderCapacitor.name=層基電容 +enderio.enderCapacitor.name=八位電容 enderio.machine.tooltip.upgrade=機器升級 enderio.machine.tooltip.upgrade.tooltip.detailed.line1=增加機器能量存儲與 @@ -189,35 +212,47 @@ tile.blockReservoir.tooltip.detailed.line5=手持扳手右擊 tile.blockReservoir.tooltip.detailed.line6=可啟用自動輸出 tile.blockAlloySmelter.name=合金爐 -tile.blockAlloySmelter.tooltip.detailed.line1=用於生產末影接口里的 +tile.blockAlloySmelter.tooltip.detailed.line1=用于生產終界接口里的 tile.blockAlloySmelter.tooltip.detailed.line2=合金爐可以當做一個能 tile.blockAlloySmelter.tooltip.detailed.line3=使用能量的熔爐使用 tile.blockAlloySmelter.tooltip.detailed.line4=使用電容器升級可 tile.blockAlloySmelter.tooltip.detailed.line5=增加速度與能量存儲 -tile.blockSolarPanel.name=光伏電池 -tile.blockSolarPanel.advanced.name=高級光伏電池 +tile.blockSolarPanel.name=光伏板 +tile.blockSolarPanel.advanced.name=高級光伏板 tile.blockSolarPanel.tooltip.detailed.line1=白天產生能量 -tile.blockSolarPanel.tooltip.detailed.line2=與天空之間必須 -tile.blockSolarPanel.tooltip.detailed.line3=有良好的視線接觸 +tile.blockSolarPanel.tooltip.detailed.line2=頂部必須 +tile.blockSolarPanel.tooltip.detailed.line3=直面天空 enderio.maxSolorProduction=最大輸出 +enderio.tooltip.efficiency=效率 item.itemElectricLight.name=電燈 item.itemElectricLight.tooltip.detailed.line1=當提供能量與紅石信 -item.itemElectricLight.tooltip.detailed.line2=號時能照亮一大片區域 +item.itemElectricLight.tooltip.detailed.line2=號時能照亮大片區域 -item.itemElectricLightInverted.name=電燈 (反轉) +item.itemElectricLightInverted.name=電燈(反相) item.itemElectricLightInverted.tooltip.detailed.line1=提供能量時 -item.itemElectricLightInverted.tooltip.detailed.line2=能照亮一大片區域 -item.itemElectricLightInverted.tooltip.detailed.line3=提供一次紅石信號后熄滅 +item.itemElectricLightInverted.tooltip.detailed.line2=可照亮大片區域 +item.itemElectricLightInverted.tooltip.detailed.line3=有紅石信號時熄滅 item.itemLight.name=燈 -item.itemLight.tooltip.detailed.line1=提供一次紅石信號后 -item.itemLight.tooltip.detailed.line2=能發光 +item.itemLight.tooltip.detailed.line1=有紅石信號時 +item.itemLight.tooltip.detailed.line2=能提供照明 -item.itemLightInverted.name=燈 (反轉) -item.itemLightInverted.tooltip.detailed.line1=能發光, 提供一次 -item.itemLightInverted.tooltip.detailed.line2=紅石信號后熄滅 +item.itemLightInverted.name=燈(反相) +item.itemLightInverted.tooltip.detailed.line1=能提供照明 +item.itemLightInverted.tooltip.detailed.line2=有紅石信號時熄滅 + +item.itemWirelessLight.name=無線燈 +item.itemWirelessLight.tooltip.detailed.line1=提供能量和紅石信號 +item.itemWirelessLight.tooltip.detailed.line2=時照亮大片區域. +item.itemWirelessLight.tooltip.detailed.line3=可從無線充能器接收能量. + +item.itemWirelessLightInverted.name=無線燈(反相) +item.itemWirelessLightInverted.tooltip.detailed.line1=提供能量時可 +item.itemWirelessLightInverted.tooltip.detailed.line2=照亮大片區域. +item.itemWirelessLightInverted.tooltip.detailed.line3=有紅石信號時熄滅 +item.itemWirelessLightInverted.tooltip.detailed.line4=可從無線充能器接收能量. tile.blockCapacitorBank.name=電容儲能庫 tile.blockCapacitorBank.creative.name=創造模式電容儲能庫 @@ -225,7 +260,23 @@ tile.blockCapacitorBank.tooltip.detailed.line1=多方塊能量存儲. tile.blockCapacitorBank.tooltip.detailed.line2=可以給使用RF能量的物品充能. tile.blockCapacitorBank.tooltipPrefix=包含 -tile.blockWirelessCharger.name=無線充電器 +tile.blockCapBank.creative.name=創造模式電容儲能庫 +tile.blockCapBank.simple.name=基本電容儲能庫 +tile.blockCapBank.activated.name=電容儲能庫 +tile.blockCapBank.vibrant.name=充滿的電容儲能庫 +tile.blockCapBank.tooltip.detailed.line1=多方塊能量存儲. +tile.blockCapBank.tooltip.detailed.line2=可以給使用RF能量的物品充能. +tile.blockCapBank.tooltip.detailed.line3=空手按下 Shift-R +tile.blockCapBank.tooltip.detailed.line4=可以顯示充能資訊 +tile.blockCapBank.tooltipPrefix=包含 + + +enderio.capbank.maxIO=最大輸入/輸出 +enderio.capbank.maxIn=最大輸入 +enderio.capbank.maxOut=最大輸出 +enderio.capbank.change=輸入/輸出 + +tile.blockWirelessCharger.name=無線充能器 tile.blockWirelessCharger.tooltip.detailed.line1=給附近玩家物品 tile.blockWirelessCharger.tooltip.detailed.line2=欄中的物品充能 @@ -237,44 +288,73 @@ tile.blockSagMill.tooltip.detailed.line4=用電容器升級可增 tile.blockSagMill.tooltip.detailed.line5=加速度與能量存儲 tile.blockSagMill.tooltipPrefix=包含 -tile.blockHyperCube.name=空間傳送器 -tile.blockHyperCube.tooltip.detailed.line1=在不同空間之間 -tile.blockHyperCube.tooltip.detailed.line2=跨越長遠距離 -tile.blockHyperCube.tooltip.detailed.line3=無線傳輸物品,流體與能量 +tile.blockHyperCube.name=空間傳送器(棄用) +tile.blockHyperCube.tooltip.detailed.line1=放入合成欄 +tile.blockHyperCube.tooltip.detailed.line2=轉為新模型 + +tile.blockTransceiver.name=空間傳送器 +tile.blockTransceiver.tooltip.detailed.line1=在不同空間之間 +tile.blockTransceiver.tooltip.detailed.line2=跨距離無線傳輸 +tile.blockTransceiver.tooltip.detailed.line3=物品,流體和能量 + +tile.blockEnderRail.name=終界軌道 +tile.blockEnderRail.tooltip.detailed.line1=放置在空間傳送器 +tile.blockEnderRail.tooltip.detailed.line2=上時可以傳送礦車 +tile.blockEnderRail.tooltip.detailed.line3=使用傳送器對應的 +tile.blockEnderRail.tooltip.detailed.line4=欄目來設定目的地 +tile.blockEnderRail.tooltip.detailed.line5=用扳手shift右擊 +tile.blockEnderRail.tooltip.detailed.line6=來設定它的方向 + +enderio.trans.showChannels=<按下Shift顯示頻道> + +enderio.trans.power=能量 +enderio.trans.item=物品 +enderio.trans.fluid=流體 +enderio.trans.rail=軌 + +enderio.trans.recieving=接收 +enderio.trans.sending=發送 tile.blockPowerMonitor.name=能量監控器 tile.blockPowerMonitor.tooltip.detailed.line1=顯示能量使用 tile.blockPowerMonitor.tooltip.detailed.line2=與存儲情況 tile.blockPowerMonitor.tooltip.detailed.line3=可根據所存儲的能量 tile.blockPowerMonitor.tooltip.detailed.line4=等級發射紅石信號 -tile.blockPowerMonitor.tooltip.detailed.line5=必須與末影接口中 +tile.blockPowerMonitor.tooltip.detailed.line5=必須與終界接口中 tile.blockPowerMonitor.tooltip.detailed.line6=的導管連接 -tile.blockVat.name=大桶 -tile.blockVat.tooltip.detailed.line1=用於生產末影接口中的流體 +tile.blockVat.name=釀液桶 +tile.blockVat.tooltip.detailed.line1=用于生產終界接口中的流體 tile.blockEnchanter.name=附魔器 -tile.blockEnchanter.tooltip.detailed.line1=使用XP讓一個物品 -tile.blockEnchanter.tooltip.detailed.line2=和一個書與筆結合 -tile.blockEnchanter.tooltip.detailed.line2=創造附魔書 +tile.blockEnchanter.tooltip.detailed.line1=使用XP讓物品與 +tile.blockEnchanter.tooltip.detailed.line2=一個書與筆結合 +tile.blockEnchanter.tooltip.detailed.line2=來制作附魔書 tile.blockCombustionGenerator.name=燃燒發電機 tile.blockCombustionGenerator.tooltip.detailed.line1=燃燒液體燃料產生能量 tile.blockCombustionGenerator.tooltip.detailed.line2=需要冷卻劑 (比如水) -tile.blockCombustionGenerator.tooltip.detailed.line3=輸出量取決于燃料 +tile.blockCombustionGenerator.tooltip.detailed.line3=輸出能量取決于燃料 -tile.blockZombieGenerator.name=僵尸發電機 +tile.blockZombieGenerator.name=殭屍發電機 tile.blockZombieGenerator.tooltip.detailed.line1=消耗營養精華液 -tile.blockZombieGenerator.tooltip.detailed.line2=來獲得能量 +tile.blockZombieGenerator.tooltip.detailed.line2=來產生能量 enderio.zombieGenerator.fuelTank=營養液水槽 - -tile.blockKillerJoe.name=殺手Joe +tile.blockKillerJoe.name=殺手喬 tile.blockKillerJoe.tooltip.detailed.line1=當你提供一把劍和營養精華 tile.blockKillerJoe.tooltip.detailed.line2=液時,這臺機器就會自動攻 tile.blockKillerJoe.tooltip.detailed.line3=擊附近的生物 -enderio.killerJoe.fuelTank=營養液水槽 -enderio.killerJoe.giveXp.tooltip=使用XP +tile.blockKillerJoe.tooltip.detailed.line4=經驗能以液態XP的形式 +tile.blockKillerJoe.tooltip.detailed.line5=用液體管道抽出 + +enderio.killerJoe.fuelTank=營養液槽 +enderio.killerJoe.giveXp.tooltip=吸收XP +enderio.killerJoe.giveXp10.tooltip=吸收10級的XP + +tile.blockSliceAndSplice.name=頭顱裝配機 +tile.blockSliceAndSplice.tooltip.detailed.line1=切開頭顱并裝入 +tile.blockSliceAndSplice.tooltip.detailed.line2=各種有用的裝置 tile.blockFarmStation.name=種植站 tile.blockFarmStation.tooltip.detailed.line1=種植與收割作物 @@ -289,78 +369,117 @@ enderio.farm.note.outputFull=輸出已滿 enderio.farm.note.noSeeds=無種子 enderio.farm.note.noAxe=無斧子 enderio.farm.note.noHoe=無鋤頭 +enderio.farm.note.noPower=能量不足 -tile.blockTank.name=流體水槽 -tile.blockTank.advanced.name加壓流體水槽 -tile.blockTank.tooltip.detailed.line1=便攜式流體水槽 -tile.blockTank.tooltip.detailed.line2=可用於清空或 +tile.blockTank.name=流體箱 +tile.blockTank.advanced.name=加壓流體箱 +tile.blockTank.tooltip.detailed.line1=便攜式流體箱 +tile.blockTank.tooltip.detailed.line2=可用于清空或 tile.blockTank.tooltip.detailed.line3=注滿液體容器 -enderio.tank.tank=水槽 +enderio.tank.tank=流體箱 +enderio.tooltip.none=空 +enderio.tooltip.fluidStored=存有流體 tile.blockCrafter.name=合成器 -tile.blockCrafter.tooltip.detailed.line1=一個使用能量的自動合成器 -tile.blockCrafter.tooltip.detailed.line2=每次操作消耗能量 -tile.blockCrafter.tooltip.detailed.line3=使用電容器升級可 +tile.blockCrafter.tooltip.detailed.line1=靠能量工作的自動合成器 +tile.blockCrafter.tooltip.detailed.line2=每次合成都會消耗能量 +tile.blockCrafter.tooltip.detailed.line3=使用電容器升級可以 tile.blockCrafter.tooltip.detailed.line4=增加速度與能量存儲 tile.blockVacuumChest.name=虛空箱子 -tile.blockVacuumChest.tooltip.detailed.line1=將附件的物品 +tile.blockVacuumChest.tooltip.detailed.line1=將附近的物品 tile.blockVacuumChest.tooltip.detailed.line2=吸入其中 tile.blockPoweredSpawner.name=電動刷怪籠 tile.blockPoweredSpawner.tooltip.empty=空 -tile.blockPoweredSpawner.empty.tooltip.detailed.line1=與一個破損的刷怪籠 +tile.blockPoweredSpawner.empty.tooltip.detailed.line1=與破損的刷怪籠 tile.blockPoweredSpawner.empty.tooltip.detailed.line2=在鐵砧里結合 tile.blockPoweredSpawner.tooltip.detailed.line1=提供能量 -tile.blockPoweredSpawner.tooltip.detailed.line2=即可啟用 +tile.blockPoweredSpawner.tooltip.detailed.line2=即可工作 tile.blockPoweredSpawner.tooltip.detailed.line3=使用電容器升級可 tile.blockPoweredSpawner.tooltip.detailed.line4=增加速度與能量存儲 item.itemBrokenSpawner.name=破損的刷怪籠 -item.itemBrokenSpawner.tooltip.detailed.line1=與一個破損的刷怪籠 -item.itemBrokenSpawner.tooltip.detailed.line2=在鐵砧里結合設置刷怪類型 +item.itemBrokenSpawner.tooltip.detailed.line1=與電動刷怪籠在鐵砧 +item.itemBrokenSpawner.tooltip.detailed.line2=里結合設置刷怪類型 + +tile.blockSoulBinder.name=靈魂綁定器 +tile.blockSoulBinder.tooltip.detailed.line1=用于轉變破損的 +tile.blockSoulBinder.tooltip.detailed.line2=刷怪籠刷怪類型 + +tile.blockAttractor.name=生物誘引裝置 +tile.blockAttractor.tooltip.detailed.line1=將怪物引向它 +tile.blockAttractor.tooltip.detailed.line2=將生物的靈魂 +tile.blockAttractor.tooltip.detailed.line3=裝瓶放入設備 +tile.blockAttractor.tooltip.detailed.line4=來指定吸引類型 + +tile.blockSpawnGuard.name=生物排除裝置 +tile.blockSpawnGuard.tooltip.detailed.line1=在它的工作范圍 +tile.blockSpawnGuard.tooltip.detailed.line2=阻止生物的刷出 + +tile.blockExperienceObelisk.name=經驗交換裝置 +tile.blockExperienceObelisk.tooltip.detailed.line1=儲存經驗值 +tile.blockExperienceObelisk.tooltip.detailed.line2=可以輸出液體經驗值到 +tile.blockExperienceObelisk.tooltip.detailed.line3=相鄰的水箱內 enderio.machine.tooltip.configured=(已配置) //Blocks -tile.blockDarkSteelPressurePlate.name=深色壓力板 +tile.blockDarkSteelPressurePlate.name=玄鋼壓力板 tile.blockDarkSteelPressurePlate.tooltip.detailed.line1=只能被玩家啟用 -tile.blockDarkSteelPressurePlate.tooltip.detailed.line2=能在粉刷機里面粉刷, +tile.blockDarkSteelPressurePlate.tooltip.detailed.line2=可在粉刷機內粉刷, tile.blockDarkSteelPressurePlate.tooltip.detailed.line3=當使用純凈玻璃粉刷 -tile.blockDarkSteelPressurePlate.tooltip.detailed.line4=時,深色壓力板能隱身 +tile.blockDarkSteelPressurePlate.tooltip.detailed.line4=時,玄鋼壓力板能隱形 +tile.blockDarkSteelPressurePlate.silent.tooltip.common.line1=無聲 +tile.blockDarkSteelPressurePlate.silent.tooltip.detailed.line1=只能被玩家啟用 +tile.blockDarkSteelPressurePlate.silent.tooltip.detailed.line2=可在粉刷機內粉刷, +tile.blockDarkSteelPressurePlate.silent.tooltip.detailed.line3=當使用純凈玻璃粉刷時, +tile.blockDarkSteelPressurePlate.silent.tooltip.detailed.line4=無聲玄鋼壓力板能隱形 + +tile.blockDarkSteelAnvil.intact.name=玄鐵砧 +tile.blockDarkSteelAnvil.slightlyDamaged.name=輕微破損的玄鐵砧 +tile.blockDarkSteelAnvil.veryDamaged.name=嚴重破損的玄鐵砧 +tile.blockDarkSteelAnvil.tooltip.common.line1=經久耐用 +tile.blockDarkSteelAnvil.tooltip.detailed.line1=比原版的鐵砧 +tile.blockDarkSteelAnvil.tooltip.detailed.line2=更加結實耐用 + +tile.blockDarkSteelLadder.name=玄鐵階梯 +tile.blockDarkSteelLadder.tooltip.common.line1=比普通階梯快 //Travel tile.blockTravelAnchor.name=旅行錨 -tile.blockTravelAnchor.tooltip.detailed.line1=運行在錨與錨之間傳送 +tile.blockTravelAnchor.tooltip.detailed.line1=允許在錨點之間傳送 tile.blockTravelAnchor.tooltip.detailed.line2=站在一個錨上, 看著 tile.blockTravelAnchor.tooltip.detailed.line3=另外一個,然后跳躍即可傳送 tile.blockTravelAnchor.tooltip.detailed.line4=也可以使用旅行權杖 tile.blockTravelAnchor.tooltip.detailed.line5=來使用旅行錨 -tile.blockTravelAnchor.tooltip.detailed.line6=能在粉刷機里面粉刷 +tile.blockTravelAnchor.tooltip.detailed.line6=可在粉刷機內粉刷 enderio.blockTravelPlatform.invalidTarget=目標受阻 enderio.blockTravelPlatform.outOfRange=目標太遠 item.itemTravelStaff.name=旅行權杖 -item.itemTravelStaff.tooltip.detailed.line1=手持旅行錨與末影接口時 -item.itemTravelStaff.tooltip.detailed.line2=方塊變為可以,并且可通過 -item.itemTravelStaff.tooltip.detailed.line3=<右擊>啟用 -item.itemTravelStaff.tooltip.detailed.line4=<右擊> 會傳送玩家 -item.itemTravelStaff.tooltip.detailed.line5=一小段距離 +item.itemTravelStaff.tooltip.detailed.line1=手持旅行錨與終界接口時 +item.itemTravelStaff.tooltip.detailed.line2=可以透視錨點,并通過 +item.itemTravelStaff.tooltip.detailed.line3=<右擊>直接傳送 +item.itemTravelStaff.tooltip.detailed.line4=<右擊> +item.itemTravelStaff.tooltip.detailed.line5=可短距離傳送玩家 enderio.itemTravelStaff.notEnoughPower=能量不足 //Painter tile.blockPainter.name=粉刷機 -enderio.blockPainter.paintedWith=繪有: -tile.blockPaintedFence.name=彩繪柵欄 -tile.blockPaintedFenceGate.name=彩繪門 -tile.blockPaintedWall.name=彩繪墻 -tile.blockPaintedStair.name=彩繪樓梯 -tile.blockPaintedSlab.name=彩繪臺階 -tile.blockPaintedDoubleSlab.name=彩繪臺階 -tile.blockPaintedGlowstone.name=彩繪螢石 +enderio.blockPainter.paintedWith=粉刷: +tile.blockPaintedFence.name=粉刷柵欄 +tile.blockPaintedFenceGate.name=粉刷門 +tile.blockPaintedWall.name=粉刷墻 +tile.blockPaintedStair.name=粉刷樓梯 +tile.blockPaintedSlab.name=粉刷臺階 +tile.blockPaintedDoubleSlab.name=粉刷臺階 +tile.blockPaintedGlowstone.name=粉刷螢石 +tile.blockPaintedCarpet.name=粉刷地毯 +enderio.painter.tooltip.wasPainted=§o你認為這是干嘛用的? -tile.blockPainter.tooltip.detailed.line1=用於粉刷: +tile.blockPainter.tooltip.detailed.line1=用于粉刷: tile.blockPainter.tooltip.detailed.line2=導管框架, 樓梯, 柵欄, tile.blockPainter.tooltip.detailed.line3=門, 臺階, 圓石墻, tile.blockPainter.tooltip.detailed.line4=玻璃框, 螢石, 地毯 @@ -370,51 +489,73 @@ tile.blockPainter.tooltip.detailed.line6=旅行錨 //Items item.itemYetaWrench.name=以太扳手 item.itemYetaWrench.tooltip.detailed.line1=手持時隱藏導管框架 -item.itemYetaWrench.tooltip.detailed.line2=Shift點擊可立即 -item.itemYetaWrench.tooltip.detailed.line3=破壞機器與管道 -item.itemYetaWrench.tooltip.detailed.line4=使用Shift鼠標滾輪或者按 -item.itemYetaWrench.tooltip.detailed.line5='Y'鍵可渲染單個導管的類型 +item.itemYetaWrench.tooltip.detailed.line2=右擊可立即 +item.itemYetaWrench.tooltip.detailed.line3=拆除機器與管道 +item.itemYetaWrench.tooltip.detailed.line4=Shift左擊一個導管 +item.itemYetaWrench.tooltip.detailed.line5=可打開導管設置GUI +item.itemYetaWrench.tooltip.detailed.line6=使用Shift鼠標滾輪或者按 +item.itemYetaWrench.tooltip.detailed.line7='Y'鍵可渲染單種類型導管 item.itemMagnet.name=電磁鐵 item.itemMagnet.tooltip.detailed.line1=吸引附近的物品 -item.itemMagnet.tooltip.detailed.line2=Shift+右擊啟用/禁用 +item.itemMagnet.tooltip.detailed.line2=Shift+右擊啟用/停用 item.itemMagnet.tooltip.detailed.line3=必須被充能, 啟用 -item.itemMagnet.tooltip.detailed.line4=仍有熱條才能正常工作 +item.itemMagnet.tooltip.detailed.line4=并放在快捷欄才能起效 item.enderio.itemConduitProbe.name=導管探測器 -item.enderio.itemConduitProbe.tooltip.detailed.line1=右擊一個導管顯示 -item.enderio.itemConduitProbe.tooltip.detailed.line2=管網的詳情 -item.enderio.itemConduitProbe.tooltip.detailed.line3=Shift右擊一個管道 -item.enderio.itemConduitProbe.tooltip.detailed.line4=訪問其連接設置 +item.enderio.itemConduitProbe.tooltip.detailed.line1=探測模式下右擊導管 +item.enderio.itemConduitProbe.tooltip.detailed.line2=顯示其網絡的詳情 +item.enderio.itemConduitProbe.tooltip.detailed.line3=復制/粘貼模式下shift右擊 +item.enderio.itemConduitProbe.tooltip.detailed.line4=復制導管的連接設置 +item.enderio.itemConduitProbe.tooltip.detailed.line5=右擊以粘貼 +item.enderio.itemConduitProbe.tooltip.detailed.line6=使用shift加鼠標滾輪或Y鍵切換模式 + +item.itemSoulVessel.name=靈魂瓶 +item.itemSoulVessel.tooltip.detailed.line1=右擊一個怪物 +item.itemSoulVessel.tooltip.detailed.line2=可捕獲其靈魂 +item.itemSoulVessel.tooltip.detailed.line3=再次右擊則釋放 + +item.itemXpTransfer.name=經驗棒 +item.itemXpTransfer.tooltip.detailed.line1=右擊裝有液態XP的 +item.itemXpTransfer.tooltip.detailed.line2=流體箱獲取經驗 +item.itemXpTransfer.tooltip.detailed.line3=Shift右擊將經驗 +item.itemXpTransfer.tooltip.detailed.line4=灌入其中 + +skullZombieElectrode.name=殭屍電極 +skullZombieController.name=Z-邏輯控制器 +skullZombieFrankenstien.name=人造殭屍 +skullEnderResonator.name=終界諧振器 + +item.itemSpawnEggEnderIO.name=生成 //Dark Steel -item.darkSteel_helmet.name=深色頭盔 -item.darkSteel_chestplate.name=深色胸甲 -item.darkSteel_leggings.name=深色護腿 -item.darkSteel_boots.name=深色靴子 +item.darkSteel_helmet.name=玄鋼頭盔 +item.darkSteel_chestplate.name=玄鋼胸甲 +item.darkSteel_leggings.name=玄鋼護腿 +item.darkSteel_boots.name=玄鋼靴子 item.darkSteel_sword.name=終結之劍 -item.darkSteel_pickaxe.name=深色鏟 -item.darkSteel_axe.name=深色斧 +item.darkSteel_pickaxe.name=玄鋼鏟 +item.darkSteel_axe.name=玄鋼斧 enderio.item.tooltip.showDetails=<按住Shift> -enderio.item.darkSteel.tooltip.durability=耐久: +enderio.item.darkSteel.tooltip.durability=耐久度: enderio.item.darkSteel_pickaxe.tooltip.effPowered=充能后的效率 -enderio.item.darkSteel_pickaxe.tooltip.effObs=采集黑曜石的效率 +enderio.item.darkSteel_pickaxe.tooltip.effObs=採集黑曜石的效率 -enderio.item.darkSteel_axe.tooltip.multiHarvest=潛行收割多個原木 +enderio.item.darkSteel_axe.tooltip.multiHarvest=潛行時一次采集多個原木 -enderio.item.darkSteel_sword.tooltip.line1=增加頭顱與末影珍珠的掉落 -enderio.item.darkSteel_sword.tooltip.line2=一旦被打,末影人無法傳送 -enderio.item.darkSteel_sword.tooltip.line3=充能后傷害+1 +enderio.item.darkSteel_sword.tooltip.line1=增加頭顱與終界珍珠的掉落 +enderio.item.darkSteel_sword.tooltip.line2=一旦被打,終界人無法傳送 +enderio.item.darkSteel_sword.tooltip.line3=充能後傷害+1 enderio.item.darkSteel_armor.tooltip.line1=充能后 -enderio.item.darkSteel_armor.tooltip.line2=鉆石級別保護 +enderio.item.darkSteel_armor.tooltip.line2=鑽石級別保護 enderio.item.darkSteel_boots.tooltip.line1=充能后 enderio.item.darkSteel_boots.tooltip.line2=掉落傷害免疫 -enderio.darksteel.upgrade.empowered_one.name=授權 +enderio.darksteel.upgrade.empowered_one.name=賦權 enderio.darksteel.upgrade.empowered_one.tooltip.detailed.line1=能量: $P enderio.darksteel.upgrade.empowered_one.tooltip.detailed.line2=能量吸收抵消一半的 enderio.darksteel.upgrade.empowered_one.tooltip.detailed.line3=耐久損傷 @@ -434,25 +575,39 @@ enderio.darksteel.upgrade.empowered_four.tooltip.detailed.line1=能量: $P enderio.darksteel.upgrade.empowered_four.tooltip.detailed.line2=能量吸收抵消一半的 enderio.darksteel.upgrade.empowered_four.tooltip.detailed.line3=耐久損傷 -enderio.darksteel.upgrade.jump_one.name=跳躍 -enderio.darksteel.upgrade.jump_one.tooltip.detailed.line1=增加步行與跳躍高度 + +enderio.darksteel.upgrade.travel.name=旅行 +enderio.darksteel.upgrade.travel.tooltip.detailed.line1=按住shift右擊來傳送或 +enderio.darksteel.upgrade.travel.tooltip.detailed.line2=啟用旅行錨和終界接口 + +enderio.darksteel.upgrade.spoon.name=勺子 +enderio.darksteel.upgrade.spoon.tooltip.detailed.line1=有了勺子 +enderio.darksteel.upgrade.spoon.tooltip.detailed.line2=誰還要鏟子 enderio.darksteel.upgrade.glider.name=滑翔 enderio.darksteel.upgrade.glider.tooltip.detailed.line1=啟用滑翔 enderio.darksteel.upgrade.glider.enabled=滑翔啟用 -enderio.darksteel.upgrade.glider.disabled=滑翔禁用 +enderio.darksteel.upgrade.glider.disabled=滑翔停用 enderio.darksteel.upgrade.sound.name=聲波定位 enderio.darksteel.upgrade.sound.tooltip.detailed.line1=顯示附近聲源 enderio.darksteel.upgrade.sound.tooltip.detailed.line2=的位置 enderio.darksteel.upgrade.sound.enabled=聲波定位啟用 -enderio.darksteel.upgrade.sound.disabled=聲波定位禁用 +enderio.darksteel.upgrade.sound.disabled=聲波定位停用 + +enderio.darksteel.upgrade.gogglesOfRevealing.name=揭示 +enderio.darksteel.upgrade.gogglesOfRevealing.tooltip.detailed.line1=要素減免: 5% item.itemGliderWing.name=滑翔翼 item.itemGliderWings.name=滑翔翼 item.itemGliderWings.tooltip.detailed.line1=用於升級 item.itemGliderWings.tooltip.detailed.line2=玄鐵鋼護胸 +enderio.darksteel.upgrade.jump_one.name=跳躍 +enderio.darksteel.upgrade.jump_one.tooltip.detailed.line1=增加步行與跳躍高度 +enderio.darksteel.upgrade.stepAssist.enabled=啟用步行輔助 +enderio.darksteel.upgrade.stepAssist.disabled=關閉步行輔助 + enderio.darksteel.upgrade.jump_two.name=跳躍 II enderio.darksteel.upgrade.jump_two.tooltip.detailed.line1=增加步行與跳躍高度 enderio.darksteel.upgrade.jump_two.tooltip.detailed.line2=允許兩重跳躍 @@ -463,6 +618,8 @@ enderio.darksteel.upgrade.jump_three.tooltip.detailed.line2=允許三重跳躍 enderio.darksteel.upgrade.speed_one.name=速度 enderio.darksteel.upgrade.speed_one.tooltip.detailed.line1=增加移動速度 +enderio.darksteel.upgrade.speed.enabled=Speed Active +enderio.darksteel.upgrade.speed.disabled=Speed Disabled enderio.darksteel.upgrade.speed_two.name=速度 II enderio.darksteel.upgrade.speed_two.tooltip.detailed.line1=增加移動速度 @@ -474,12 +631,18 @@ enderio.darksteel.upgrade.swim.name=腳蹼 enderio.darksteel.upgrade.nightVision.name=夜視 enderio.darksteel.upgrade.nightVision.enabled=夜視已啟用 -enderio.darksteel.upgrade.nightVision.disabled=夜視已禁用 +enderio.darksteel.upgrade.nightVision.disabled=夜視已停用 + +enderio.darksteel.upgrade.solar_one.name=太陽能 I +enderio.darksteel.upgrade.solar_one.tooltip.detailed.line1=太陽能發電產生能源. + +enderio.darksteel.upgrade.solar_two.name=太陽能 II +enderio.darksteel.upgrade.solar_two.tooltip.detailed.line1=太陽能發電產生能源. //------GUI enderio.gui.enabled=啟用 -enderio.gui.disabled=禁用 +enderio.gui.disabled=停用 enderio.gui.send=發送 enderio.gui.recieve=接收 enderio.gui.sendRecieve=發送和接收 @@ -495,27 +658,37 @@ enderio.gui.machine.ioMode.overlay.tooltip=配置IO enderio.gui.machine.ioMode.none=無 enderio.gui.machine.ioMode.pull=拉 enderio.gui.machine.ioMode.push=推 -enderio.gui.machine.ioMode.disabled=禁用 +enderio.gui.machine.ioMode.disabled=停用 enderio.gui.machine.ioMode.pullPush=推 / 拉 +enderio.gui.machine.ioMode.pullPush.colored=%s推 %s/ %s拉 +enderio.gui.machine.ioMode=模式: %s +enderio.gui.machine.side=側面: %s +enderio.gui.machine.side.north=北 +enderio.gui.machine.side.south=南 +enderio.gui.machine.side.west=西 +enderio.gui.machine.side.east=東 +enderio.gui.machine.side.up=上 +enderio.gui.machine.side.down=下 + //Power Monitor enderio.gui.powerMonitor.engineControl=引擎控制 enderio.gui.powerMonitor.emit=發送 -enderio.gui.powerMonitor.engineSection1=發送信號當存儲能量少 -enderio.gui.powerMonitor.engineSection2=於 -enderio.gui.powerMonitor.engineSection3=%滿. -enderio.gui.powerMonitor.engineSection4=停止發送信號當存儲能量多 -enderio.gui.powerMonitor.engineSection5=或等 -enderio.gui.powerMonitor.of=于 -enderio.gui.powerMonitor.monHeading1=導管緩沖 -enderio.gui.powerMonitor.monHeading2=儲能庫存儲 -enderio.gui.powerMonitor.monHeading3=機器緩沖 +enderio.gui.powerMonitor.engineSection1=輸出信號條件:當存儲 +enderio.gui.powerMonitor.engineSection2=能量少於 +enderio.gui.powerMonitor.engineSection3=%時. +enderio.gui.powerMonitor.engineSection4=停止條件:當存儲能量 +enderio.gui.powerMonitor.engineSection5=多或等於 +enderio.gui.powerMonitor.of=占 +enderio.gui.powerMonitor.monHeading1=導管緩衝 +enderio.gui.powerMonitor.monHeading2=儲能庫儲量 +enderio.gui.powerMonitor.monHeading3=機器緩衝 enderio.gui.powerMonitor.monHeading4=5秒平均輸出 enderio.gui.powerMonitor.monHeading5=5秒平均輸入 //MJ Reader enderio.gui.mjReader.networkHeading=能量網 -enderio.gui.mjReader.conduitBuffer=內部緩沖 +enderio.gui.mjReader.conduitBuffer=內部緩衝 enderio.gui.mjReader.requestRange=每刻請求范圍 enderio.gui.mjReader.currentRequest=當前請求 enderio.gui.mjReader.itemHeading=物品導管 @@ -538,8 +711,8 @@ enderio.gui.capBank.outputRs=輸出紅石控制 enderio.gui.capBank.maxIo=最大流量 enderio.gui.capBank.maxInput=最大輸入 enderio.gui.capBank.maxOutput=最大輸出 -enderio.gui.capBank.inputMode=Input -enderio.gui.capBank.outputMode=Output +enderio.gui.capBank.inputMode=輸入模式 +enderio.gui.capBank.outputMode=輸出模式 //Transceiver enderio.gui.trans.publicChannel=公共頻道 @@ -560,27 +733,33 @@ enderio.gui.alloy.mode.alloy=僅限合金 enderio.gui.alloy.mode.furnace=僅限熔爐 //Vat -enderio.vat.outputTank=輸出水槽 -enderio.vat.inputTank=輸入水槽 +enderio.vat.outputTank=輸出槽 +enderio.vat.inputTank=輸入槽 +enderio.gui.machine.vat.dump.1=導出輸入槽 +enderio.gui.machine.vat.dump.2=導出輸出槽 //Combustion Gen enderio.combustionGenerator.coolantTank=冷卻劑 enderio.combustionGenerator.fuelTank=燃料 -enderio.combustionGenerator.output=正在產生: +enderio.combustionGenerator.output=產能速率: //Stirling Gen -enderio.stirlingGenerator.output=正在產生: +enderio.stirlingGenerator.output=產能速率: enderio.stirlingGenerator.burnRate=燃燒速率: //Travel Blocks -enderio.gui.travelAccessable.privateBlock1=只 -enderio.gui.travelAccessable.privateBlock2=會改變這個方塊設置. +enderio.gui.travelAccessable.privateBlock1=只有 +enderio.gui.travelAccessable.privateBlock2=才能改變該方塊的設置. enderio.gui.travelAccessable.public=公共 enderio.gui.travelAccessable.private=私有 enderio.gui.travelAccessable.protected=被保護 -enderio.gui.travelAccessable.unauthorised=你沒有訪問這個方塊的權限. +enderio.gui.travelAccessable.unauthorised=你沒有訪問該方塊的權限. enderio.gui.travelAccessable.enterCode=需要訪問密碼 -enderio.gui.travelAccessable.ok=已授權 +enderio.gui.travelAccessable.ok=已賦權 + +//Spawn Gurad +enderio.gui.spawnGurad.showRange=顯示范圍 +enderio.gui.spawnGurad.range=范圍: //conduits enderio.gui.conduit.ioMode=模式 @@ -588,7 +767,8 @@ enderio.gui.conduit.ioMode.inOut=輸入圖/輸出 enderio.gui.conduit.ioMode.input=提取 enderio.gui.conduit.ioMode.output=加入 enderio.gui.conduit.ioMode.disabled=關閉 -enderio.gui.conduit.ioMode.notSet=默認 +enderio.gui.conduit.ioMode.notSet=預設 +tile.blockConduitBundle.name=導管接口 enderio.gui.conduit.item.insertionFilter=加入物品過濾 enderio.gui.conduit.item.extractionFilter=提取物品過濾 @@ -607,20 +787,24 @@ enderio.gui.conduit.item.oreDicDisabled=關閉礦石檢索 enderio.gui.conduit.item.selfFeedEnabled=自供給開啟 enderio.gui.conduit.item.selfFeedDisabled=自供給關閉 enderio.gui.conduit.item.roundRobinEnabled=循環啟用 -enderio.gui.conduit.item.roundRobinDisabled=循環禁用 +enderio.gui.conduit.item.roundRobinDisabled=循環停用 enderio.gui.conduit.item.priority=優先級 enderio.gui.conduit.redstone.signalColor=信號顏色 enderio.gui.conduit.redstone.color=顏色 +enderio.gui.conduit.redstone.signalStrengh=強信號 +enderio.gui.conduit.redstone.signalStrengh.tooltip=輸出強紅石信號 enderio.gui.conduit.fluid.autoExtract=自動提取 enderio.gui.conduit.fluid.filter=過濾器 enderio.gui.conduit.gas.autoExtract=自動提取 +//Enchants +enchantment.enderio.soulBound=靈魂綁定 //Configuration -enderio.config.title=末影接口配置文件 +enderio.config.title=終界接口配置文件 enderio.config.power=能量設置 enderio.config.power.tooltip=太多數字要修改了... @@ -628,8 +812,8 @@ enderio.config.power.tooltip=太多數字要修改了... enderio.config.recipe=配方設置 enderio.config.recipe.tooltip=配置所有東西! -enderio.config.item=物品授權 -enderio.config.item.tooltip=如果你不喜歡我的一些令人嘆為觀止的東西 :( +enderio.config.item=物品賦權 +enderio.config.item.tooltip=如果你不喜歡我的一些驚奇的物品 :( enderio.config.efficiency=效率設置 enderio.config.efficiency.tooltip=這些數字上限是多少? @@ -640,20 +824,20 @@ enderio.config.personal.tooltip=我絕不會告訴任何人, 我發誓. enderio.config.anchor=錨設置 enderio.config.anchor.tooltip=Anchors away! -enderio.config.staff=人員設置 -enderio.config.staff.tooltip=Be careful with that thing, you'll teleport your face off. +enderio.config.staff=權杖設置 +enderio.config.staff.tooltip=小心點,傳送時別撞到臉. -enderio.config.darksteel=深色鋼鐵 +enderio.config.darksteel=玄鋼 enderio.config.darksteel.tooltip=這不是一般的鋼鐵, 這是§o深色§r§e 鋼鐵. enderio.config.farm=種植設置 enderio.config.farm.tooltip="公社萬歲!" -enderio.config.aesthetic=美學設置 -enderio.config.aesthetic.tooltip=Oooh, ahhh, pretty. +enderio.config.aesthetic=外觀設置 +enderio.config.aesthetic.tooltip=哦,啊哼,漂亮. enderio.config.advanced=高級設置 -enderio.config.advanced.tooltip=For those who can't have enough configs. +enderio.config.advanced.tooltip=為那些覺得設置不夠多的人而準備. enderio.config.magnet=電磁鐵設置 enderio.config.magnet.tooltip=它們怎么運作? @@ -662,4 +846,4 @@ enderio.config.fluid=流體設置 enderio.config.fluid.tooltip=純凈的液態能量! enderio.config.spawner=電動刷怪籠設置 -enderio.config.spawner.tooltip=我已經用完有趣的工具提示了. +enderio.config.spawner.tooltip=我已經想不出什麼有趣的提示文本了. From f7095ed28f28fd6603436d75667b1c70f53e2315 Mon Sep 17 00:00:00 2001 From: Jason McRay Date: Sat, 27 Dec 2014 16:38:04 +0100 Subject: [PATCH 02/95] Wrong Bronze Recipe in Alloy Smelter Bronze should be made by melting 3xCopper and 1xTin; not 3xTin + 1xCopper --- .../assets/enderio/config/AlloySmelterRecipes_Core.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml b/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml index 46e31c34..5c4d0ffa 100644 --- a/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml +++ b/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml @@ -333,8 +333,8 @@ To write the contents of the ore dictionary to config/oreDictionaryRegistery.txt - - + + @@ -403,4 +403,4 @@ To write the contents of the ore dictionary to config/oreDictionaryRegistery.txt - \ No newline at end of file + From d86b31ce5067e53558e282faad6e45763f04dd30 Mon Sep 17 00:00:00 2001 From: hilburn Date: Tue, 30 Dec 2014 03:34:16 +0000 Subject: [PATCH 03/95] Ignore Bee Generations #1416 if a generation tag exists, discards it before NBT comparison - it's not exactly pretty but pretty much what Forestry does with it's logic --- .../enderio/conduit/item/filter/ItemFilter.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/conduit/item/filter/ItemFilter.java b/src/main/java/crazypants/enderio/conduit/item/filter/ItemFilter.java index 3561cb31..e95c4628 100644 --- a/src/main/java/crazypants/enderio/conduit/item/filter/ItemFilter.java +++ b/src/main/java/crazypants/enderio/conduit/item/filter/ItemFilter.java @@ -84,7 +84,7 @@ public class ItemFilter implements IInventory, IItemFilter { matched = true; if(matchMeta && item.getItemDamage() != it.getItemDamage()) { matched = false; - } else if(matchNBT && !ItemStack.areItemStackTagsEqual(item, it)) { + } else if(matchNBT && !isNBTMatch(item, it)) { matched = false; } } @@ -120,6 +120,18 @@ public class ItemFilter implements IInventory, IItemFilter { } return false; } + + private boolean isNBTMatch(ItemStack filter, ItemStack item) + { + if (filter.stackTagCompound == null && item.stackTagCompound == null) return true; + if (filter.stackTagCompound == null || item.stackTagCompound == null) return false; + if (!filter.getTagCompound().hasKey("GEN")) return filter.stackTagCompound.equals(item.stackTagCompound); + NBTTagCompound filterTag = (NBTTagCompound) filter.getTagCompound().copy(); + NBTTagCompound itemTag = (NBTTagCompound) item.getTagCompound().copy(); + filterTag.removeTag("GEN"); + itemTag.removeTag("GEN"); + return filterTag.equals(itemTag); + } private int[] getCachedIds(int filterItemIndex) { int[] res = oreIds.get(filterItemIndex); From 97bdb5f2093d415b7b0d412e33ce2c262956dcdc Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 10:22:38 -0500 Subject: [PATCH 04/95] Remove AE2 rv1 support, update API to rv2 --- src/api/java/appeng/.gitignore | 6 + src/api/java/appeng/api/IAppEngApi.java | 8 +- src/api/java/appeng/api/LICENSE | 20 + src/api/java/appeng/api/README.md | 19 + .../appeng/api/config/AccessRestriction.java | 12 +- ...ndenserOuput.java => CondenserOutput.java} | 2 +- .../appeng/api/config/LevelEmitterMode.java | 2 +- .../java/appeng/api/config/ModSettings.java | 12 +- .../java/appeng/api/config/PowerUnits.java | 4 +- src/api/java/appeng/api/config/Settings.java | 92 ++--- src/api/java/appeng/api/config/SortDir.java | 2 +- .../java/appeng/api/config/StorageFilter.java | 2 +- .../java/appeng/api/config/TunnelType.java | 30 +- .../java/appeng/api/definitions/Blocks.java | 2 +- .../appeng/api/definitions/Materials.java | 6 +- .../api/events/LocatableEventAnnounce.java | 2 +- .../exceptions/MissingIngredientError.java | 22 +- .../api/exceptions/ModNotInstalled.java | 24 +- .../appeng/api/exceptions/RecipeError.java | 24 +- .../appeng/api/features/IGrinderEntry.java | 18 +- .../appeng/api/features/IGrinderRegistry.java | 8 +- ...ider.java => IItemComparisonProvider.java} | 6 +- .../api/features/ILocatableRegistry.java | 4 +- .../features/IMatterCannonAmmoRegistry.java | 6 +- .../api/features/INetworkEncodable.java | 55 ++- .../api/features/IP2PTunnelRegistry.java | 4 +- .../appeng/api/features/IPlayerRegistry.java | 10 +- .../api/features/IRecipeHandlerRegistry.java | 97 ++--- .../api/features/IRegistryContainer.java | 10 +- .../features/ISpecialComparisonRegistry.java | 8 +- .../api/features/IWirelessTermHandler.java | 14 +- ...istery.java => IWirelessTermRegistry.java} | 12 +- .../java/appeng/api/features/IWorldGen.java | 8 +- .../implementations/ICraftingPatternItem.java | 8 +- .../implementations/IPowerChannelState.java | 2 +- .../api/implementations/IUpgradeableHost.java | 6 +- .../api/implementations/TransitionResult.java | 6 +- .../implementations/guiobjects/IGuiItem.java | 30 +- .../guiobjects/IGuiItemObject.java | 18 +- .../guiobjects/INetworkTool.java | 28 +- .../guiobjects/IPortableCell.java | 28 +- .../items/IAEItemPowerStorage.java | 8 +- .../api/implementations/items/IAEWrench.java | 11 +- .../implementations/items/IBiometricCard.java | 29 +- .../api/implementations/items/IItemGroup.java | 6 +- .../implementations/items/IMemoryCard.java | 12 +- .../items/ISpatialStorageCell.java | 30 +- .../implementations/items/IStorageCell.java | 18 +- .../items/IStorageComponent.java | 8 +- .../implementations/items/IUpgradeModule.java | 2 +- .../api/implementations/parts/IPartCable.java | 16 +- .../implementations/tiles/IChestOrDrive.java | 4 +- .../tiles/ICraftingMachine.java | 10 +- .../tiles/ISegmentedInventory.java | 4 +- .../tiles/ITileStorageMonitorable.java | 30 +- .../tiles/IWirelessAccessPoint.java | 60 +-- .../api/integration/IBeeComparison.java | 36 +- .../appeng/api/movable/IMovableHandler.java | 23 +- .../appeng/api/movable/IMovableRegistry.java | 14 +- .../java/appeng/api/movable/IMovableTile.java | 2 +- .../java/appeng/api/networking/GridFlags.java | 90 ++--- .../api/networking/GridNotification.java | 18 +- src/api/java/appeng/api/networking/IGrid.java | 142 +++---- .../appeng/api/networking/IGridBlock.java | 177 ++++----- .../appeng/api/networking/IGridCache.java | 142 +++---- .../api/networking/IGridCacheRegistry.java | 55 ++- .../api/networking/IGridConnection.java | 114 +++--- ...sitor.java => IGridConnectionVisitor.java} | 2 +- .../java/appeng/api/networking/IGridHost.java | 86 ++--- .../java/appeng/api/networking/IGridNode.java | 280 +++++++------- .../appeng/api/networking/IGridVisitor.java | 42 +-- .../networking/crafting/ICraftingGrid.java | 37 +- .../api/networking/crafting/ICraftingJob.java | 2 +- .../networking/crafting/ICraftingLink.java | 2 +- .../networking/crafting/ICraftingMedium.java | 5 +- .../crafting/ICraftingPatternDetails.java | 26 +- .../crafting/ICraftingProvider.java | 2 +- .../crafting/ICraftingRequester.java | 8 +- .../crafting/ICraftingWatcherHost.java | 8 +- .../networking/energy/IAEPowerStorage.java | 9 +- .../api/networking/energy/IEnergyGrid.java | 164 ++++---- .../energy/IEnergyGridProvider.java | 56 +-- .../api/networking/energy/IEnergySource.java | 5 +- .../networking/energy/IEnergyWatcherHost.java | 6 +- .../events/MENetworkCellArrayUpdate.java | 2 +- .../events/MENetworkChannelChanged.java | 2 +- .../api/networking/events/MENetworkEvent.java | 6 +- .../MENetworkPostCacheConstruction.java | 20 +- .../events/MENetworkPowerIdleChange.java | 2 +- .../events/MENetworkPowerStorage.java | 2 +- .../events/MENetworkSpatialEvent.java | 28 +- .../api/networking/pathing/IPathingGrid.java | 46 +-- .../networking/security/ISecurityGrid.java | 8 +- .../security/ISecurityProvider.java | 6 +- ...tyRegister.java => ISecurityRegistry.java} | 10 +- .../api/networking/spatial/ISpatialCache.java | 6 +- .../networking/storage/IStackWatcherHost.java | 12 +- .../api/networking/storage/IStorageGrid.java | 90 ++--- .../api/networking/ticking/IGridTickable.java | 112 +++--- .../api/networking/ticking/ITickManager.java | 88 ++--- .../ticking/TickRateModulation.java | 68 ++-- .../networking/ticking/TickingRequest.java | 108 +++--- src/api/java/appeng/api/package-info.java | 10 +- src/api/java/appeng/api/parts/BusSupport.java | 20 +- .../java/appeng/api/parts/IAlphaPassItem.java | 4 +- .../java/appeng/api/parts/IBoxProvider.java | 4 +- .../appeng/api/parts/IFacadeContainer.java | 105 ++++-- .../java/appeng/api/parts/IFacadePart.java | 151 ++++---- src/api/java/appeng/api/parts/IPart.java | 162 ++++---- ...nHelper.java => IPartCollisionHelper.java} | 14 +- .../java/appeng/api/parts/IPartHelper.java | 17 +- src/api/java/appeng/api/parts/IPartHost.java | 302 +++++++-------- src/api/java/appeng/api/parts/IPartItem.java | 35 +- .../appeng/api/parts/IPartRenderHelper.java | 98 ++--- src/api/java/appeng/api/parts/LayerBase.java | 10 +- .../java/appeng/api/parts/PartItemStack.java | 28 +- .../appeng/api/recipes/ICraftHandler.java | 8 +- .../java/appeng/api/recipes/IIngredient.java | 128 +++---- .../appeng/api/recipes/IRecipeHandler.java | 4 +- .../appeng/api/recipes/ISubItemResolver.java | 6 +- .../appeng/api/storage/ICellContainer.java | 2 +- .../java/appeng/api/storage/ICellHandler.java | 28 +- .../appeng/api/storage/ICellRegistry.java | 10 +- .../api/storage/ICellWorkbenchItem.java | 2 +- .../api/storage/IExternalStorageHandler.java | 12 +- .../api/storage/IExternalStorageRegistry.java | 10 +- .../java/appeng/api/storage/IMEInventory.java | 6 +- .../api/storage/IMEInventoryHandler.java | 4 +- .../java/appeng/api/storage/IMEMonitor.java | 2 +- .../storage/IMEMonitorHandlerReceiver.java | 6 +- .../appeng/api/storage/IStorageHelper.java | 45 ++- .../appeng/api/storage/ITerminalHost.java | 4 +- .../appeng/api/storage/MEMonitorHandler.java | 21 +- .../appeng/api/storage/StorageChannel.java | 66 ++-- .../api/storage/data/IAEFluidStack.java | 2 +- .../appeng/api/storage/data/IAEItemStack.java | 10 +- .../appeng/api/storage/data/IAEStack.java | 357 +++++++++--------- .../api/storage/data/IAETagCompound.java | 4 +- .../api/storage/data/IItemContainer.java | 10 +- .../appeng/api/storage/data/IItemList.java | 8 +- src/api/java/appeng/api/util/AECableType.java | 60 +-- src/api/java/appeng/api/util/AEColor.java | 178 +++++---- .../api/util/AEColoredItemDefinition.java | 93 ++--- .../appeng/api/util/AEItemDefinition.java | 108 +++--- .../appeng/api/util/DimensionalCoord.java | 8 +- src/api/java/appeng/api/util/ICommonTile.java | 44 +-- .../java/appeng/api/util/IConfigManager.java | 29 +- ...leObject.java => IConfigurableObject.java} | 2 +- src/api/java/appeng/api/util/IOrientable.java | 6 +- .../appeng/api/util/IOrientableBlock.java | 48 +-- src/api/java/appeng/api/util/WorldCoord.java | 4 +- .../enderio/conduit/ConduitRecipes.java | 10 +- .../enderio/conduit/me/MEConduitGrid.java | 7 +- 153 files changed, 2747 insertions(+), 2659 deletions(-) create mode 100644 src/api/java/appeng/.gitignore create mode 100644 src/api/java/appeng/api/LICENSE create mode 100644 src/api/java/appeng/api/README.md rename src/api/java/appeng/api/config/{CondenserOuput.java => CondenserOutput.java} (82%) rename src/api/java/appeng/api/features/{IItemComparisionProvider.java => IItemComparisonProvider.java} (89%) rename src/api/java/appeng/api/features/{IWirelessTermRegistery.java => IWirelessTermRegistry.java} (77%) rename src/api/java/appeng/api/networking/{IGridConnecitonVisitor.java => IGridConnectionVisitor.java} (75%) rename src/api/java/appeng/api/networking/security/{ISecurityRegister.java => ISecurityRegistry.java} (75%) rename src/api/java/appeng/api/parts/{IPartCollsionHelper.java => IPartCollisionHelper.java} (71%) rename src/api/java/appeng/api/util/{IConfigureableObject.java => IConfigurableObject.java} (82%) diff --git a/src/api/java/appeng/.gitignore b/src/api/java/appeng/.gitignore new file mode 100644 index 00000000..0f182a03 --- /dev/null +++ b/src/api/java/appeng/.gitignore @@ -0,0 +1,6 @@ +*.class + +# Package Files # +*.jar +*.war +*.ear diff --git a/src/api/java/appeng/api/IAppEngApi.java b/src/api/java/appeng/api/IAppEngApi.java index ed14ed63..c8546bdb 100644 --- a/src/api/java/appeng/api/IAppEngApi.java +++ b/src/api/java/appeng/api/IAppEngApi.java @@ -54,16 +54,16 @@ public interface IAppEngApi /** * create a grid node for your {@link IGridHost} * - * @param block - * @return + * @param block grid block + * @return grid node of block */ IGridNode createGridNode(IGridBlock block); /** * create a connection between two {@link IGridNode} * - * @param a - * @param b + * @param a to be connected gridnode + * @param b to be connected gridnode * @throws FailedConnection */ IGridConnection createGridConnection(IGridNode a, IGridNode b) throws FailedConnection; diff --git a/src/api/java/appeng/api/LICENSE b/src/api/java/appeng/api/LICENSE new file mode 100644 index 00000000..643181ca --- /dev/null +++ b/src/api/java/appeng/api/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2013 AlgorithmX2 + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/src/api/java/appeng/api/README.md b/src/api/java/appeng/api/README.md new file mode 100644 index 00000000..2c43544e --- /dev/null +++ b/src/api/java/appeng/api/README.md @@ -0,0 +1,19 @@ +Applied-Energistics-2-API +========================= + +The API for Applied Energistics 2. It is open source to discuss changes, improve documentation, and provide better add-on support in general. + +Development and standard builds can be obtained [Here](http://ae2.ae-mod.info/Downloads/). + +Maven +========================= + +When compiling against the AE2 API you can use gradle dependencies, just add + +dependencies { + compile "appeng:appliedenergistics2:rv_-_____-__:dev" +} + +or add the compile line to your existing dependencies task to your build.gradle + +Where the __ are filled in with the correct version criteria; AE2 is available from the default forge maven so no additional repositories are necessary. diff --git a/src/api/java/appeng/api/config/AccessRestriction.java b/src/api/java/appeng/api/config/AccessRestriction.java index 56fac0f9..4867b539 100644 --- a/src/api/java/appeng/api/config/AccessRestriction.java +++ b/src/api/java/appeng/api/config/AccessRestriction.java @@ -4,30 +4,30 @@ public enum AccessRestriction { NO_ACCESS(0), READ(1), WRITE(2), READ_WRITE(3); - private final int permisionBit; + private final int permissionBit; private AccessRestriction(int v) { - permisionBit = v; + permissionBit = v; } public boolean hasPermission(AccessRestriction ar) { - return (permisionBit & ar.permisionBit) == ar.permisionBit; + return (permissionBit & ar.permissionBit) == ar.permissionBit; } public AccessRestriction restrictPermissions(AccessRestriction ar) { - return getPermByBit( permisionBit & ar.permisionBit ); + return getPermByBit( permissionBit & ar.permissionBit); } public AccessRestriction addPermissions(AccessRestriction ar) { - return getPermByBit( permisionBit | ar.permisionBit ); + return getPermByBit( permissionBit | ar.permissionBit); } public AccessRestriction removePermissions(AccessRestriction ar) { - return getPermByBit( permisionBit & (~ar.permisionBit) ); + return getPermByBit( permissionBit & (~ar.permissionBit) ); } private AccessRestriction getPermByBit(int bit) diff --git a/src/api/java/appeng/api/config/CondenserOuput.java b/src/api/java/appeng/api/config/CondenserOutput.java similarity index 82% rename from src/api/java/appeng/api/config/CondenserOuput.java rename to src/api/java/appeng/api/config/CondenserOutput.java index db84fc27..e2c501d4 100644 --- a/src/api/java/appeng/api/config/CondenserOuput.java +++ b/src/api/java/appeng/api/config/CondenserOutput.java @@ -1,7 +1,7 @@ package appeng.api.config; -public enum CondenserOuput +public enum CondenserOutput { TRASH, // 0 diff --git a/src/api/java/appeng/api/config/LevelEmitterMode.java b/src/api/java/appeng/api/config/LevelEmitterMode.java index 4fafbf96..46709c8a 100644 --- a/src/api/java/appeng/api/config/LevelEmitterMode.java +++ b/src/api/java/appeng/api/config/LevelEmitterMode.java @@ -5,6 +5,6 @@ public enum LevelEmitterMode STORED_AMOUNT, - STOREABLE_AMOUNT + STORABLE_AMOUNT } \ No newline at end of file diff --git a/src/api/java/appeng/api/config/ModSettings.java b/src/api/java/appeng/api/config/ModSettings.java index 9b578dc0..84fe79f3 100644 --- a/src/api/java/appeng/api/config/ModSettings.java +++ b/src/api/java/appeng/api/config/ModSettings.java @@ -1,6 +1,6 @@ -package appeng.api.config; - -public enum ModSettings -{ - -} +package appeng.api.config; + +public enum ModSettings +{ + +} diff --git a/src/api/java/appeng/api/config/PowerUnits.java b/src/api/java/appeng/api/config/PowerUnits.java index 8a0d2f7a..edcf5d71 100644 --- a/src/api/java/appeng/api/config/PowerUnits.java +++ b/src/api/java/appeng/api/config/PowerUnits.java @@ -30,8 +30,8 @@ public enum PowerUnits * * will normally returns 64, as it will convert the EU, to AE with AE's power settings. * - * @param target - * @param value + * @param target target power unit + * @param value value * @return value converted to target units, from this units. */ public double convertTo(PowerUnits target, double value) diff --git a/src/api/java/appeng/api/config/Settings.java b/src/api/java/appeng/api/config/Settings.java index 1925907c..1f15b86a 100644 --- a/src/api/java/appeng/api/config/Settings.java +++ b/src/api/java/appeng/api/config/Settings.java @@ -1,46 +1,46 @@ -package appeng.api.config; - -import java.util.EnumSet; - -public enum Settings -{ - LEVEL_EMITTER_MODE(EnumSet.allOf( LevelEmitterMode.class )), - - REDSTONE_EMITTER(EnumSet.of( RedstoneMode.HIGH_SIGNAL, RedstoneMode.LOW_SIGNAL )), REDSTONE_CONTROLLED(EnumSet.allOf( RedstoneMode.class )), - - CONDENSER_OUTPUT(EnumSet.allOf( CondenserOuput.class )), - - POWER_UNITS(EnumSet.allOf( PowerUnits.class )), ACCESS(EnumSet.of( AccessRestriction.READ_WRITE, AccessRestriction.READ, AccessRestriction.WRITE )), - - SORT_DIRECTION(EnumSet.allOf( SortDir.class )), SORT_BY(EnumSet.allOf( SortOrder.class )), - - SEARCH_TOOLTIPS(EnumSet.of( YesNo.YES, YesNo.NO )), VIEW_MODE(EnumSet.allOf( ViewItems.class )), SEARCH_MODE(EnumSet.allOf( SearchBoxMode.class )), - - ACTIONS(EnumSet.allOf( ActionItems.class )), IO_DIRECTION(EnumSet.of( RelativeDirection.LEFT, RelativeDirection.RIGHT )), - - BLOCK(EnumSet.of( YesNo.YES, YesNo.NO )), OPERATION_MODE(EnumSet.allOf( OperationMode.class )), - - FULLNESS_MODE(EnumSet.allOf( FullnessMode.class )), CRAFT_ONLY(EnumSet.of( YesNo.YES, YesNo.NO )), - - FUZZY_MODE(EnumSet.allOf( FuzzyMode.class )), LEVEL_TYPE(EnumSet.allOf( LevelType.class )), - - TERMINAL_STYLE(EnumSet.of( TerminalStyle.TALL, TerminalStyle.SMALL )), COPY_MODE(EnumSet.allOf( CopyMode.class )), - - INTERFACE_TERMINAL(EnumSet.of( YesNo.YES, YesNo.NO )), CRAFT_VIA_REDSTONE(EnumSet.of( YesNo.YES, YesNo.NO )), - - STORAGE_FILTER(EnumSet.allOf( StorageFilter.class )); - - private EnumSet values; - - public EnumSet getPossibleValues() - { - return values; - } - - private Settings(EnumSet set) { - if ( set == null || set.isEmpty() ) - throw new RuntimeException( "Invalid configuration." ); - values = set; - } - -} +package appeng.api.config; + +import java.util.EnumSet; + +public enum Settings +{ + LEVEL_EMITTER_MODE(EnumSet.allOf( LevelEmitterMode.class )), + + REDSTONE_EMITTER(EnumSet.of( RedstoneMode.HIGH_SIGNAL, RedstoneMode.LOW_SIGNAL )), REDSTONE_CONTROLLED(EnumSet.allOf( RedstoneMode.class )), + + CONDENSER_OUTPUT(EnumSet.allOf( CondenserOutput.class )), + + POWER_UNITS(EnumSet.allOf( PowerUnits.class )), ACCESS(EnumSet.of( AccessRestriction.READ_WRITE, AccessRestriction.READ, AccessRestriction.WRITE )), + + SORT_DIRECTION(EnumSet.allOf( SortDir.class )), SORT_BY(EnumSet.allOf( SortOrder.class )), + + SEARCH_TOOLTIPS(EnumSet.of( YesNo.YES, YesNo.NO )), VIEW_MODE(EnumSet.allOf( ViewItems.class )), SEARCH_MODE(EnumSet.allOf( SearchBoxMode.class )), + + ACTIONS(EnumSet.allOf( ActionItems.class )), IO_DIRECTION(EnumSet.of( RelativeDirection.LEFT, RelativeDirection.RIGHT )), + + BLOCK(EnumSet.of( YesNo.YES, YesNo.NO )), OPERATION_MODE(EnumSet.allOf( OperationMode.class )), + + FULLNESS_MODE(EnumSet.allOf( FullnessMode.class )), CRAFT_ONLY(EnumSet.of( YesNo.YES, YesNo.NO )), + + FUZZY_MODE(EnumSet.allOf( FuzzyMode.class )), LEVEL_TYPE(EnumSet.allOf( LevelType.class )), + + TERMINAL_STYLE(EnumSet.of( TerminalStyle.TALL, TerminalStyle.SMALL )), COPY_MODE(EnumSet.allOf( CopyMode.class )), + + INTERFACE_TERMINAL(EnumSet.of( YesNo.YES, YesNo.NO )), CRAFT_VIA_REDSTONE(EnumSet.of( YesNo.YES, YesNo.NO )), + + STORAGE_FILTER(EnumSet.allOf( StorageFilter.class )); + + private EnumSet values; + + public EnumSet getPossibleValues() + { + return values; + } + + private Settings(EnumSet set) { + if ( set == null || set.isEmpty() ) + throw new RuntimeException( "Invalid configuration." ); + values = set; + } + +} diff --git a/src/api/java/appeng/api/config/SortDir.java b/src/api/java/appeng/api/config/SortDir.java index 305ebfb4..140393bb 100644 --- a/src/api/java/appeng/api/config/SortDir.java +++ b/src/api/java/appeng/api/config/SortDir.java @@ -2,5 +2,5 @@ package appeng.api.config; public enum SortDir { - ASCENDING, DESCENDING; + ASCENDING, DESCENDING } \ No newline at end of file diff --git a/src/api/java/appeng/api/config/StorageFilter.java b/src/api/java/appeng/api/config/StorageFilter.java index d92f58ac..3b8f588f 100644 --- a/src/api/java/appeng/api/config/StorageFilter.java +++ b/src/api/java/appeng/api/config/StorageFilter.java @@ -5,6 +5,6 @@ public enum StorageFilter NONE, - EXTACTABLE_ONLY + EXTRACTABLE_ONLY } diff --git a/src/api/java/appeng/api/config/TunnelType.java b/src/api/java/appeng/api/config/TunnelType.java index f45b9874..595b19d7 100644 --- a/src/api/java/appeng/api/config/TunnelType.java +++ b/src/api/java/appeng/api/config/TunnelType.java @@ -1,15 +1,15 @@ -package appeng.api.config; - -public enum TunnelType -{ - ME, // Network Tunnel - BC_POWER, // MJ Tunnel - IC2_POWER, // EU Tunnel - RF_POWER, // RF Tunnel - REDSTONE, // Redstone Tunnel - FLUID, // Fluid Tunnel - ITEM, // Item Tunnel - LIGHT, // Light Tunnel - BUNDLED_REDSTONE, // Bundled Redstone Tunnel - COMPUTER_MESSAGE // Computer Message Tunnel -} +package appeng.api.config; + +public enum TunnelType +{ + ME, // Network Tunnel + BC_POWER, // MJ Tunnel + IC2_POWER, // EU Tunnel + RF_POWER, // RF Tunnel + REDSTONE, // Redstone Tunnel + FLUID, // Fluid Tunnel + ITEM, // Item Tunnel + LIGHT, // Light Tunnel + BUNDLED_REDSTONE, // Bundled Redstone Tunnel + COMPUTER_MESSAGE // Computer Message Tunnel +} diff --git a/src/api/java/appeng/api/definitions/Blocks.java b/src/api/java/appeng/api/definitions/Blocks.java index f8095dd8..d850e6dc 100644 --- a/src/api/java/appeng/api/definitions/Blocks.java +++ b/src/api/java/appeng/api/definitions/Blocks.java @@ -16,7 +16,7 @@ public class Blocks * Decorative */ public AEItemDefinition blockQuartz; - public AEItemDefinition blockQuartzPiller; + public AEItemDefinition blockQuartzPillar; public AEItemDefinition blockQuartzChiseled; public AEItemDefinition blockQuartzGlass; public AEItemDefinition blockQuartzVibrantGlass; diff --git a/src/api/java/appeng/api/definitions/Materials.java b/src/api/java/appeng/api/definitions/Materials.java index e3ba938f..b6ae52c4 100644 --- a/src/api/java/appeng/api/definitions/Materials.java +++ b/src/api/java/appeng/api/definitions/Materials.java @@ -32,9 +32,9 @@ public class Materials public AEItemDefinition materialBasicCard; public AEItemDefinition materialAdvCard; - public AEItemDefinition materialPureifiedCertusQuartzCrystal; - public AEItemDefinition materialPureifiedNetherQuartzCrystal; - public AEItemDefinition materialPureifiedFluixCrystal; + public AEItemDefinition materialPurifiedCertusQuartzCrystal; + public AEItemDefinition materialPurifiedNetherQuartzCrystal; + public AEItemDefinition materialPurifiedFluixCrystal; public AEItemDefinition materialCell1kPart; public AEItemDefinition materialCell4kPart; diff --git a/src/api/java/appeng/api/events/LocatableEventAnnounce.java b/src/api/java/appeng/api/events/LocatableEventAnnounce.java index f54f9487..af9b6f85 100644 --- a/src/api/java/appeng/api/events/LocatableEventAnnounce.java +++ b/src/api/java/appeng/api/events/LocatableEventAnnounce.java @@ -15,7 +15,7 @@ public class LocatableEventAnnounce extends Event { Register, // Adds the locatable to the registry Unregister // Removes the locatable from the registry - }; + } final public ILocatable target; final public LocatableEvent change; diff --git a/src/api/java/appeng/api/exceptions/MissingIngredientError.java b/src/api/java/appeng/api/exceptions/MissingIngredientError.java index 51a200a0..9dcdda55 100644 --- a/src/api/java/appeng/api/exceptions/MissingIngredientError.java +++ b/src/api/java/appeng/api/exceptions/MissingIngredientError.java @@ -1,11 +1,11 @@ -package appeng.api.exceptions; - -public class MissingIngredientError extends Exception { - - private static final long serialVersionUID = -998858343831371697L; - - public MissingIngredientError(String n) { - super( n ); - } - -} +package appeng.api.exceptions; + +public class MissingIngredientError extends Exception { + + private static final long serialVersionUID = -998858343831371697L; + + public MissingIngredientError(String n) { + super( n ); + } + +} diff --git a/src/api/java/appeng/api/exceptions/ModNotInstalled.java b/src/api/java/appeng/api/exceptions/ModNotInstalled.java index 7744a1fb..425e7aa4 100644 --- a/src/api/java/appeng/api/exceptions/ModNotInstalled.java +++ b/src/api/java/appeng/api/exceptions/ModNotInstalled.java @@ -1,12 +1,12 @@ -package appeng.api.exceptions; - -public class ModNotInstalled extends Exception -{ - - private static final long serialVersionUID = -9052435206368425494L; - - public ModNotInstalled(String t) { - super( t ); - } - -} +package appeng.api.exceptions; + +public class ModNotInstalled extends Exception +{ + + private static final long serialVersionUID = -9052435206368425494L; + + public ModNotInstalled(String t) { + super( t ); + } + +} diff --git a/src/api/java/appeng/api/exceptions/RecipeError.java b/src/api/java/appeng/api/exceptions/RecipeError.java index a07f6438..df0a976b 100644 --- a/src/api/java/appeng/api/exceptions/RecipeError.java +++ b/src/api/java/appeng/api/exceptions/RecipeError.java @@ -1,12 +1,12 @@ -package appeng.api.exceptions; - -public class RecipeError extends Exception -{ - - private static final long serialVersionUID = -6602870588617670262L; - - public RecipeError(String n) { - super( n ); - } - -} +package appeng.api.exceptions; + +public class RecipeError extends Exception +{ + + private static final long serialVersionUID = -6602870588617670262L; + + public RecipeError(String n) { + super( n ); + } + +} diff --git a/src/api/java/appeng/api/features/IGrinderEntry.java b/src/api/java/appeng/api/features/IGrinderEntry.java index afd18af4..a7549f2f 100644 --- a/src/api/java/appeng/api/features/IGrinderEntry.java +++ b/src/api/java/appeng/api/features/IGrinderEntry.java @@ -18,7 +18,7 @@ public interface IGrinderEntry /** * lets you change the grinder recipe by changing its input. * - * @param input + * @param input input item */ public void setInput(ItemStack input); @@ -46,37 +46,37 @@ public interface IGrinderEntry /** * allows you to change the output. * - * @param output + * @param output output item */ public void setOutput(ItemStack output); /** * stack, and 0.0-1.0 chance that it will be generated. * - * @param output - * @param chance + * @param output output item + * @param chance generation chance */ public void setOptionalOutput(ItemStack output, float chance); /** * 0.0 - 1.0 the chance that the optional output will be generated. * - * @return + * @return chance of optional output */ public float getOptionalChance(); /** * stack, and 0.0-1.0 chance that it will be generated. * - * @param output - * @param chance + * @param output second optional output item + * @param chance second optional output chance */ public void setSecondOptionalOutput(ItemStack output, float chance); /** * 0.0 - 1.0 the chance that the optional output will be generated. * - * @return + * @return second optional output chance */ public float getSecondOptionalChance(); @@ -90,7 +90,7 @@ public interface IGrinderEntry /** * Allows you to adjust the number of turns * - * @param new number of turns to produce output. + * @param c number of turns to produce output. */ public void setEnergyCost(int c); } diff --git a/src/api/java/appeng/api/features/IGrinderRegistry.java b/src/api/java/appeng/api/features/IGrinderRegistry.java index 1355ef13..e34a9225 100644 --- a/src/api/java/appeng/api/features/IGrinderRegistry.java +++ b/src/api/java/appeng/api/features/IGrinderRegistry.java @@ -1,9 +1,9 @@ package appeng.api.features; -import java.util.List; - import net.minecraft.item.ItemStack; +import java.util.List; + /** * Lets you manipulate Grinder Recipes, by adding or editing existing ones. */ @@ -13,12 +13,12 @@ public interface IGrinderRegistry /** * Current list of registered recipes, you can modify this if you want too. * - * @return currentlyRegistredRecipes + * @return currentlyRegisteredRecipes */ public List getRecipes(); /** - * add a new recipe the easy way, in -> out, how many turns., duplicates will not be added. + * add a new recipe the easy way, in → out, how many turns., duplicates will not be added. * * @param in input * @param out output diff --git a/src/api/java/appeng/api/features/IItemComparisionProvider.java b/src/api/java/appeng/api/features/IItemComparisonProvider.java similarity index 89% rename from src/api/java/appeng/api/features/IItemComparisionProvider.java rename to src/api/java/appeng/api/features/IItemComparisonProvider.java index a64bf215..6b7a11b1 100644 --- a/src/api/java/appeng/api/features/IItemComparisionProvider.java +++ b/src/api/java/appeng/api/features/IItemComparisonProvider.java @@ -7,14 +7,14 @@ import net.minecraft.item.ItemStack; * if the comparison function handles the item, by trying to request a * IItemComparison class. */ -public interface IItemComparisionProvider +public interface IItemComparisonProvider { /** * should return a new IItemComparison, or return null if it doesn't handle * the supplied item. * - * @param is + * @param is item * @return IItemComparison, or null */ IItemComparison getComparison(ItemStack is); @@ -22,7 +22,7 @@ public interface IItemComparisionProvider /** * Simple test for support ( AE generally skips this and calls the above function. ) * - * @param stack + * @param stack item * @return true, if getComparison will return a valid IItemComparison Object */ public boolean canHandle(ItemStack stack); diff --git a/src/api/java/appeng/api/features/ILocatableRegistry.java b/src/api/java/appeng/api/features/ILocatableRegistry.java index 1d19ae8c..c07b2300 100644 --- a/src/api/java/appeng/api/features/ILocatableRegistry.java +++ b/src/api/java/appeng/api/features/ILocatableRegistry.java @@ -10,9 +10,9 @@ public interface ILocatableRegistry * Attempts to find the object with the serial specified, if it can it * returns the object. * - * @param ser + * @param serial serial * @return requestedObject, or null */ - public abstract Object findLocateableBySerial(long ser); + public abstract Object findLocatableBySerial(long serial); } \ No newline at end of file diff --git a/src/api/java/appeng/api/features/IMatterCannonAmmoRegistry.java b/src/api/java/appeng/api/features/IMatterCannonAmmoRegistry.java index fd6051a7..18d9683c 100644 --- a/src/api/java/appeng/api/features/IMatterCannonAmmoRegistry.java +++ b/src/api/java/appeng/api/features/IMatterCannonAmmoRegistry.java @@ -8,15 +8,15 @@ public interface IMatterCannonAmmoRegistry /** * register a new ammo, generally speaking this is based off of atomic weight to make it easier to guess at * - * @param ammo - * @param weight + * @param ammo new ammo + * @param weight atomic weight */ void registerAmmo(ItemStack ammo, double weight); /** * get the penetration value for a particular ammo, 0 indicates a non-ammo. * - * @param is + * @param is ammo * @return 0 or a valid penetration value. */ float getPenetration(ItemStack is); diff --git a/src/api/java/appeng/api/features/INetworkEncodable.java b/src/api/java/appeng/api/features/INetworkEncodable.java index 57ef647f..2b096d61 100644 --- a/src/api/java/appeng/api/features/INetworkEncodable.java +++ b/src/api/java/appeng/api/features/INetworkEncodable.java @@ -1,28 +1,27 @@ -package appeng.api.features; - -import net.minecraft.item.ItemStack; - -public interface INetworkEncodable { - - /** - * 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); - -} +package appeng.api.features; + +import net.minecraft.item.ItemStack; + +public interface INetworkEncodable { + + /** + * Used to get the current key from the item. + * + * @param item item + * @return string key of item + */ + 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); + +} diff --git a/src/api/java/appeng/api/features/IP2PTunnelRegistry.java b/src/api/java/appeng/api/features/IP2PTunnelRegistry.java index 7717ce38..e1c85c71 100644 --- a/src/api/java/appeng/api/features/IP2PTunnelRegistry.java +++ b/src/api/java/appeng/api/features/IP2PTunnelRegistry.java @@ -23,8 +23,8 @@ public interface IP2PTunnelRegistry /** * returns null if no attunement can be found. * - * @param trigger - * @return + * @param trigger attunement trigger + * @return null if no attunement can be found or attunement */ TunnelType getTunnelTypeByItem(ItemStack trigger); diff --git a/src/api/java/appeng/api/features/IPlayerRegistry.java b/src/api/java/appeng/api/features/IPlayerRegistry.java index 04a824ce..d52b0a03 100644 --- a/src/api/java/appeng/api/features/IPlayerRegistry.java +++ b/src/api/java/appeng/api/features/IPlayerRegistry.java @@ -12,15 +12,21 @@ public interface IPlayerRegistry { /** - * @param player + * @param gameProfile user game profile * @return user id of a username. */ int getID(GameProfile gameProfile); /** - * @param player + * @param player player * @return user id of a player entity. */ int getID(EntityPlayer player); + /** + * @param playerID to be found player id + * @return PlayerEntity, or null if the player could not be found. + */ + EntityPlayer findPlayer(int playerID); + } diff --git a/src/api/java/appeng/api/features/IRecipeHandlerRegistry.java b/src/api/java/appeng/api/features/IRecipeHandlerRegistry.java index 5b8fe543..be43a544 100644 --- a/src/api/java/appeng/api/features/IRecipeHandlerRegistry.java +++ b/src/api/java/appeng/api/features/IRecipeHandlerRegistry.java @@ -1,48 +1,49 @@ -package appeng.api.features; - -import appeng.api.recipes.ICraftHandler; -import appeng.api.recipes.IRecipeHandler; -import appeng.api.recipes.ISubItemResolver; - -public interface IRecipeHandlerRegistry -{ - - /** - * Add a new Recipe Handler to the parser. - * - * MUST BE CALLED IN PRE-INIT - * - * @param name - * @param handler - */ - void addNewCraftHandler(String name, Class handler); - - /** - * Add a new resolver to the parser. - * - * MUST BE CALLED IN PRE-INIT - * - * @param sir - */ - void addNewSubItemResolver(ISubItemResolver sir); - - /** - * @param name - * @return A recipe handler by name, returns null on failure. - */ - ICraftHandler getCraftHandlerFor(String name); - - /** - * @return a new recipe handler, which can be used to parse, and read recipe files. - */ - public IRecipeHandler createNewRecipehandler(); - - /** - * resolve sub items by name. - * - * @param tmpName - * @return ResolerResult or ResolverResultSet - */ - Object resolveItem(String nameSpace, String itemName); - -} +package appeng.api.features; + +import appeng.api.recipes.ICraftHandler; +import appeng.api.recipes.IRecipeHandler; +import appeng.api.recipes.ISubItemResolver; + +public interface IRecipeHandlerRegistry +{ + + /** + * Add a new Recipe Handler to the parser. + * + * MUST BE CALLED IN PRE-INIT + * + * @param name name of crafthandler + * @param handler class of crafthandler + */ + void addNewCraftHandler(String name, Class handler); + + /** + * Add a new resolver to the parser. + * + * MUST BE CALLED IN PRE-INIT + * + * @param sir sub item resolver + */ + void addNewSubItemResolver(ISubItemResolver sir); + + /** + * @param name name of crafting handler + * @return A recipe handler by name, returns null on failure. + */ + ICraftHandler getCraftHandlerFor(String name); + + /** + * @return a new recipe handler, which can be used to parse, and read recipe files. + */ + public IRecipeHandler createNewRecipehandler(); + + /** + * resolve sub items by name. + * + * @param nameSpace namespace of item + * @param itemName full name of item + * @return ResolverResult or ResolverResultSet + */ + Object resolveItem(String nameSpace, String itemName); + +} diff --git a/src/api/java/appeng/api/features/IRegistryContainer.java b/src/api/java/appeng/api/features/IRegistryContainer.java index 1e6b49ac..c2a74e7f 100644 --- a/src/api/java/appeng/api/features/IRegistryContainer.java +++ b/src/api/java/appeng/api/features/IRegistryContainer.java @@ -11,7 +11,7 @@ public interface IRegistryContainer /** * Use the movable registry to white list your tiles. */ - IMovableRegistry moveable(); + IMovableRegistry movable(); /** * Add new Grid Caches for use during run time, only use during loading phase. @@ -20,19 +20,19 @@ public interface IRegistryContainer /** * 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. + * function unlike vanilla chests. AE uses this internally for barrels, DSU's, quantum chests, AE Networks and more. */ IExternalStorageRegistry externalStorage(); /** * Add additional special comparison functionality, AE Uses this internally for Bees. */ - ISpecialComparisonRegistry specialComparson(); + ISpecialComparisonRegistry specialComparison(); /** * Lets you register your items as wireless terminals */ - IWirelessTermRegistery wireless(); + IWirelessTermRegistry wireless(); /** * Allows you to register new cell types, these will function in drives @@ -47,7 +47,7 @@ public interface IRegistryContainer /** * get access to the locatable registry */ - ILocatableRegistry locateable(); + ILocatableRegistry locatable(); /** * get access to the p2p tunnel registry. diff --git a/src/api/java/appeng/api/features/ISpecialComparisonRegistry.java b/src/api/java/appeng/api/features/ISpecialComparisonRegistry.java index 300a511e..c51d85b4 100644 --- a/src/api/java/appeng/api/features/ISpecialComparisonRegistry.java +++ b/src/api/java/appeng/api/features/ISpecialComparisonRegistry.java @@ -12,16 +12,16 @@ public interface ISpecialComparisonRegistry /** * return TheHandler or null. * - * @param stack + * @param stack item * @return a handler it found for a specific item */ - IItemComparison getSpecialComparion(ItemStack stack); + IItemComparison getSpecialComparison(ItemStack stack); /** * Register a new special comparison function with AE. * - * @param prov + * @param prov comparison provider */ - public void addComparisonProvider(IItemComparisionProvider prov); + public void addComparisonProvider(IItemComparisonProvider prov); } \ No newline at end of file diff --git a/src/api/java/appeng/api/features/IWirelessTermHandler.java b/src/api/java/appeng/api/features/IWirelessTermHandler.java index 84ab938e..7c29ea48 100644 --- a/src/api/java/appeng/api/features/IWirelessTermHandler.java +++ b/src/api/java/appeng/api/features/IWirelessTermHandler.java @@ -11,7 +11,7 @@ public interface IWirelessTermHandler extends INetworkEncodable { /** - * @param is + * @param is wireless terminal * @return true, if usePower, hasPower, etc... can be called for the provided item */ boolean canHandle(ItemStack is); @@ -22,24 +22,24 @@ public interface IWirelessTermHandler extends INetworkEncodable * @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 + * @param is wireless terminal + * @return true if wireless terminal uses power */ boolean usePower(EntityPlayer player, double amount, ItemStack is); /** * gets the power status of the item. * - * @param is + * @param is wireless terminal * @return returns true if there is any power left. */ boolean hasPower(EntityPlayer player, double amount, ItemStack is); /** - * Return the config manage for the wireless terminal. + * Return the config manager for the wireless terminal. * - * @param is - * @return + * @param is wireless terminal + * @return config manager of wireless terminal */ IConfigManager getConfigManager(ItemStack is); diff --git a/src/api/java/appeng/api/features/IWirelessTermRegistery.java b/src/api/java/appeng/api/features/IWirelessTermRegistry.java similarity index 77% rename from src/api/java/appeng/api/features/IWirelessTermRegistery.java rename to src/api/java/appeng/api/features/IWirelessTermRegistry.java index 0f14ce94..9d6d911b 100644 --- a/src/api/java/appeng/api/features/IWirelessTermRegistery.java +++ b/src/api/java/appeng/api/features/IWirelessTermRegistry.java @@ -7,24 +7,24 @@ import net.minecraft.world.World; /** * Registration record for a Custom Cell handler. */ -public interface IWirelessTermRegistery +public interface IWirelessTermRegistry { /** * add this handler to the list of other wireless handler. * - * @param handler + * @param handler wireless handler */ void registerWirelessHandler(IWirelessTermHandler handler); /** - * @param is + * @param is item which might have a handler * @return true if there is a handler for this item */ boolean isWirelessTerminal(ItemStack is); /** - * @param is + * @param is item with handler * @return a register handler for the item in question, or null if there * isn't one */ @@ -34,6 +34,6 @@ public interface IWirelessTermRegistery * 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); + void openWirelessTerminalGui(ItemStack item, World w, EntityPlayer player); -} \ No newline at end of file +} diff --git a/src/api/java/appeng/api/features/IWorldGen.java b/src/api/java/appeng/api/features/IWorldGen.java index f79017ff..cadc56a7 100644 --- a/src/api/java/appeng/api/features/IWorldGen.java +++ b/src/api/java/appeng/api/features/IWorldGen.java @@ -8,12 +8,14 @@ public interface IWorldGen public enum WorldGenType { - CertusQuartz, ChargedCertusQuartz, Metorites - }; + CertusQuartz, ChargedCertusQuartz, Meteorites + } public void disableWorldGenForProviderID(WorldGenType type, Class provider); - public void disableWorldGenForDimension(WorldGenType type, int dimid); + public void enableWorldGenForDimension(WorldGenType type, int dimID); + + public void disableWorldGenForDimension(WorldGenType type, int dimID); boolean isWorldGenEnabled(WorldGenType type, World w); diff --git a/src/api/java/appeng/api/implementations/ICraftingPatternItem.java b/src/api/java/appeng/api/implementations/ICraftingPatternItem.java index b454c8c7..c3d0a52e 100644 --- a/src/api/java/appeng/api/implementations/ICraftingPatternItem.java +++ b/src/api/java/appeng/api/implementations/ICraftingPatternItem.java @@ -12,11 +12,11 @@ public interface ICraftingPatternItem { /** - * Access Details about a patern + * Access Details about a pattern * - * @param is - * @param w - * @return + * @param is pattern + * @param w crafting world + * @return details of pattern */ ICraftingPatternDetails getPatternForItem(ItemStack is, World w); } diff --git a/src/api/java/appeng/api/implementations/IPowerChannelState.java b/src/api/java/appeng/api/implementations/IPowerChannelState.java index 9927685b..b17f9251 100644 --- a/src/api/java/appeng/api/implementations/IPowerChannelState.java +++ b/src/api/java/appeng/api/implementations/IPowerChannelState.java @@ -1,7 +1,7 @@ package appeng.api.implementations; /** - * This is intended for use on the client side to provide details to Waila. + * This is intended for use on the client side to provide details to WAILA. */ public interface IPowerChannelState { diff --git a/src/api/java/appeng/api/implementations/IUpgradeableHost.java b/src/api/java/appeng/api/implementations/IUpgradeableHost.java index 45c5a718..45a98af1 100644 --- a/src/api/java/appeng/api/implementations/IUpgradeableHost.java +++ b/src/api/java/appeng/api/implementations/IUpgradeableHost.java @@ -1,11 +1,11 @@ package appeng.api.implementations; +import appeng.api.util.IConfigurableObject; import net.minecraft.tileentity.TileEntity; import appeng.api.config.Upgrades; import appeng.api.implementations.tiles.ISegmentedInventory; -import appeng.api.util.IConfigureableObject; -public interface IUpgradeableHost extends IConfigureableObject, ISegmentedInventory +public interface IUpgradeableHost extends IConfigurableObject, ISegmentedInventory { /** @@ -16,7 +16,7 @@ public interface IUpgradeableHost extends IConfigureableObject, ISegmentedInvent /** * the tile... * - * @return + * @return tile entity */ TileEntity getTile(); diff --git a/src/api/java/appeng/api/implementations/TransitionResult.java b/src/api/java/appeng/api/implementations/TransitionResult.java index 4e0f9831..bc1e5e1f 100644 --- a/src/api/java/appeng/api/implementations/TransitionResult.java +++ b/src/api/java/appeng/api/implementations/TransitionResult.java @@ -6,13 +6,11 @@ package appeng.api.implementations; */ public class TransitionResult { + public final boolean success; + public final double energyUsage; public TransitionResult(boolean _success, double power) { success = _success; energyUsage = power; } - - public final boolean success; - public final double energyUsage; - } diff --git a/src/api/java/appeng/api/implementations/guiobjects/IGuiItem.java b/src/api/java/appeng/api/implementations/guiobjects/IGuiItem.java index 5ee7a832..436bd301 100644 --- a/src/api/java/appeng/api/implementations/guiobjects/IGuiItem.java +++ b/src/api/java/appeng/api/implementations/guiobjects/IGuiItem.java @@ -1,15 +1,15 @@ -package appeng.api.implementations.guiobjects; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -/** - * Implemented on Item objects, to return objects used to manage, and interact - * with the contents. - */ -public interface IGuiItem -{ - - IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z); - -} +package appeng.api.implementations.guiobjects; + +import net.minecraft.item.ItemStack; +import net.minecraft.world.World; + +/** + * Implemented on Item objects, to return objects used to manage, and interact + * with the contents. + */ +public interface IGuiItem +{ + + IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z); + +} diff --git a/src/api/java/appeng/api/implementations/guiobjects/IGuiItemObject.java b/src/api/java/appeng/api/implementations/guiobjects/IGuiItemObject.java index 1b1dfe64..95a18edf 100644 --- a/src/api/java/appeng/api/implementations/guiobjects/IGuiItemObject.java +++ b/src/api/java/appeng/api/implementations/guiobjects/IGuiItemObject.java @@ -1,9 +1,9 @@ -package appeng.api.implementations.guiobjects; - -import net.minecraft.item.ItemStack; - -public interface IGuiItemObject -{ - - public ItemStack getItemStack(); -} +package appeng.api.implementations.guiobjects; + +import net.minecraft.item.ItemStack; + +public interface IGuiItemObject +{ + + public ItemStack getItemStack(); +} diff --git a/src/api/java/appeng/api/implementations/guiobjects/INetworkTool.java b/src/api/java/appeng/api/implementations/guiobjects/INetworkTool.java index b4d19999..f0265f34 100644 --- a/src/api/java/appeng/api/implementations/guiobjects/INetworkTool.java +++ b/src/api/java/appeng/api/implementations/guiobjects/INetworkTool.java @@ -1,14 +1,14 @@ -package appeng.api.implementations.guiobjects; - -import net.minecraft.inventory.IInventory; -import appeng.api.networking.IGridHost; - -/** - * Obtained via {@link IGuiItem} getGuiObject - */ -public interface INetworkTool extends IInventory, IGuiItemObject -{ - - IGridHost getGridHost(); // null for most purposes. - -} +package appeng.api.implementations.guiobjects; + +import net.minecraft.inventory.IInventory; +import appeng.api.networking.IGridHost; + +/** + * Obtained via {@link IGuiItem} getGuiObject + */ +public interface INetworkTool extends IInventory, IGuiItemObject +{ + + IGridHost getGridHost(); // null for most purposes. + +} diff --git a/src/api/java/appeng/api/implementations/guiobjects/IPortableCell.java b/src/api/java/appeng/api/implementations/guiobjects/IPortableCell.java index 779e741c..b1244013 100644 --- a/src/api/java/appeng/api/implementations/guiobjects/IPortableCell.java +++ b/src/api/java/appeng/api/implementations/guiobjects/IPortableCell.java @@ -1,14 +1,14 @@ -package appeng.api.implementations.guiobjects; - -import appeng.api.networking.energy.IEnergySource; -import appeng.api.storage.IMEMonitor; -import appeng.api.storage.ITerminalHost; -import appeng.api.storage.data.IAEItemStack; - -/** - * Obtained via {@link IGuiItem} getGuiObject - */ -public interface IPortableCell extends ITerminalHost, IMEMonitor, IEnergySource, IGuiItemObject -{ - -} +package appeng.api.implementations.guiobjects; + +import appeng.api.networking.energy.IEnergySource; +import appeng.api.storage.IMEMonitor; +import appeng.api.storage.ITerminalHost; +import appeng.api.storage.data.IAEItemStack; + +/** + * Obtained via {@link IGuiItem} getGuiObject + */ +public interface IPortableCell extends ITerminalHost, IMEMonitor, IEnergySource, IGuiItemObject +{ + +} diff --git a/src/api/java/appeng/api/implementations/items/IAEItemPowerStorage.java b/src/api/java/appeng/api/implementations/items/IAEItemPowerStorage.java index 26d09fe8..5ab2ac99 100644 --- a/src/api/java/appeng/api/implementations/items/IAEItemPowerStorage.java +++ b/src/api/java/appeng/api/implementations/items/IAEItemPowerStorage.java @@ -14,7 +14,7 @@ public interface IAEItemPowerStorage * Inject amt, power into the device, it will store what it can, and return * the amount unable to be stored. * - * @return + * @return amount unable to be stored */ public double injectAEPower(ItemStack is, double amt); @@ -22,8 +22,8 @@ public interface IAEItemPowerStorage * Attempt to extract power from the device, it will extract what it can and * return it. * - * @param amt - * @return + * @param amt to be extracted power from device + * @return what it could extract */ public double extractAEPower(ItemStack is, double amt); @@ -41,7 +41,7 @@ public interface IAEItemPowerStorage * Control the power flow by telling what the network can do, either add? or * subtract? or both! * - * @return + * @return access restriction of network */ public AccessRestriction getPowerFlow(ItemStack is); diff --git a/src/api/java/appeng/api/implementations/items/IAEWrench.java b/src/api/java/appeng/api/implementations/items/IAEWrench.java index b18100e7..9f913fa7 100644 --- a/src/api/java/appeng/api/implementations/items/IAEWrench.java +++ b/src/api/java/appeng/api/implementations/items/IAEWrench.java @@ -13,11 +13,12 @@ public interface IAEWrench /** * Check if the wrench can be used. * - * @param player - * @param x - * @param y - * @param z - * @return + * @param player wrenching player + * @param x x pos of wrenched block + * @param y y pos of wrenched block + * @param z z pos of wrenched block + * + * @return true if wrench can be used */ boolean canWrench(ItemStack wrench, EntityPlayer player, int x, int y, int z); diff --git a/src/api/java/appeng/api/implementations/items/IBiometricCard.java b/src/api/java/appeng/api/implementations/items/IBiometricCard.java index a333d1a4..bbf8f8e5 100644 --- a/src/api/java/appeng/api/implementations/items/IBiometricCard.java +++ b/src/api/java/appeng/api/implementations/items/IBiometricCard.java @@ -1,13 +1,12 @@ package appeng.api.implementations.items; -import java.util.EnumSet; - -import net.minecraft.item.ItemStack; import appeng.api.config.SecurityPermissions; import appeng.api.features.IPlayerRegistry; -import appeng.api.networking.security.ISecurityRegister; - +import appeng.api.networking.security.ISecurityRegistry; import com.mojang.authlib.GameProfile; +import net.minecraft.item.ItemStack; + +import java.util.EnumSet; public interface IBiometricCard { @@ -23,7 +22,7 @@ public interface IBiometricCard GameProfile getProfile(ItemStack is); /** - * @param itemStack + * @param itemStack card * @return the full list of permissions encoded on the card. */ EnumSet getPermissions(ItemStack itemStack); @@ -31,7 +30,7 @@ public interface IBiometricCard /** * Check if a permission is encoded on the card. * - * @param permission + * @param permission card * @return true if this permission is set on the card. */ boolean hasPermission(ItemStack is, SecurityPermissions permission); @@ -39,26 +38,26 @@ public interface IBiometricCard /** * remove a permission from the item stack. * - * @param itemStack - * @param permission + * @param itemStack card + * @param permission to be removed permission */ void removePermission(ItemStack itemStack, SecurityPermissions permission); /** * add a permission to the item stack. * - * @param itemStack - * @param permission + * @param itemStack card + * @param permission to be added permission */ void addPermission(ItemStack itemStack, SecurityPermissions permission); /** * lets you handle submission of security values on the card for custom behavior. * - * @param register - * @param pr - * @param is + * @param registry security registry + * @param pr player registry + * @param is card */ - void registerPermissions(ISecurityRegister register, IPlayerRegistry pr, ItemStack is); + void registerPermissions(ISecurityRegistry registry, IPlayerRegistry pr, ItemStack is); } diff --git a/src/api/java/appeng/api/implementations/items/IItemGroup.java b/src/api/java/appeng/api/implementations/items/IItemGroup.java index 7dfa21e1..2dce5719 100644 --- a/src/api/java/appeng/api/implementations/items/IItemGroup.java +++ b/src/api/java/appeng/api/implementations/items/IItemGroup.java @@ -1,9 +1,9 @@ package appeng.api.implementations.items; -import java.util.Set; - import net.minecraft.item.ItemStack; +import java.util.Set; + /** * Lets you specify the name of the group of items this falls under. */ @@ -13,7 +13,7 @@ public interface IItemGroup /** * returning null, is the same as not implementing the interface at all. * - * @param is + * @param is item * @return an unlocalized string to use for the items group name. */ String getUnlocalizedGroupName(Set otherItems, ItemStack is); diff --git a/src/api/java/appeng/api/implementations/items/IMemoryCard.java b/src/api/java/appeng/api/implementations/items/IMemoryCard.java index 34a9d845..14692313 100644 --- a/src/api/java/appeng/api/implementations/items/IMemoryCard.java +++ b/src/api/java/appeng/api/implementations/items/IMemoryCard.java @@ -16,7 +16,7 @@ public interface IMemoryCard * Configures the data stored on the memory card, the SettingsName, will be * localized when displayed. * - * @param is + * @param is item * @param SettingsName * unlocalized string that represents the tile entity. * @param data @@ -27,17 +27,17 @@ public interface IMemoryCard void setMemoryCardContents(ItemStack is, String SettingsName, NBTTagCompound data); /** - * returns the settings name provided by a pervious call to + * returns the settings name provided by a previous call to * setMemoryCardContents, or "AppEng.GuiITooltip.Blank" if there was no * previous call to setMemoryCardContents. * - * @param is - * @return + * @param is item + * @return setting name */ String getSettingsName(ItemStack is); /** - * @param is + * @param is item * @return the NBT Data previously saved by setMemoryCardContents, or an * empty NBTCompound */ @@ -48,7 +48,7 @@ public interface IMemoryCard * * @param player * that used the card. - * @param settingsSaved + * @param msg * which message to send. */ void notifyUser(EntityPlayer player, MemoryCardMessages msg); diff --git a/src/api/java/appeng/api/implementations/items/ISpatialStorageCell.java b/src/api/java/appeng/api/implementations/items/ISpatialStorageCell.java index 581cf856..5aaf997a 100644 --- a/src/api/java/appeng/api/implementations/items/ISpatialStorageCell.java +++ b/src/api/java/appeng/api/implementations/items/ISpatialStorageCell.java @@ -13,19 +13,19 @@ public interface ISpatialStorageCell { /** - * @param is + * @param is spatial storage cell * @return true if this item is a spatial storage cell */ boolean isSpatialStorage(ItemStack is); /** - * @param is + * @param is spatial storage cell * @return the maximum size of the spatial storage cell along any given axis */ int getMaxStoredDim(ItemStack is); /** - * @param is + * @param is spatial storage cell * @return the world for this cell */ World getWorld(ItemStack is); @@ -33,36 +33,36 @@ public interface ISpatialStorageCell /** * get the currently stored size. * - * @param is - * @return + * @param is spatial storage cell + * @return size of spatial */ WorldCoord getStoredSize(ItemStack is); /** * Minimum coordinates in its world for the storage cell. * - * @param is - * @return + * @param is spatial storage cell + * @return minimum coordinate of dimension */ WorldCoord getMin(ItemStack is); /** * Maximum coordinates in its world for the storage cell. * - * @param is - * @return + * @param is spatial storage cell + * @return maximum coordinate of dimension */ WorldCoord getMax(ItemStack is); /** * Perform a spatial swap with the contents of the cell, and the world. * - * @param is - * @param w - * @param min - * @param max - * @param doTransition - * @return + * @param is spatial storage cell + * @param w world of spatial + * @param min min coord + * @param max max coord + * @param doTransition transition + * @return result of transition */ TransitionResult doSpatialTransition(ItemStack is, World w, WorldCoord min, WorldCoord max, boolean doTransition); diff --git a/src/api/java/appeng/api/implementations/items/IStorageCell.java b/src/api/java/appeng/api/implementations/items/IStorageCell.java index 425e5b19..ef0d8420 100644 --- a/src/api/java/appeng/api/implementations/items/IStorageCell.java +++ b/src/api/java/appeng/api/implementations/items/IStorageCell.java @@ -22,16 +22,16 @@ public interface IStorageCell extends ICellWorkbenchItem * 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 + * @param cellItem item + * @return number of bytes */ int getBytes(ItemStack cellItem); /** * Determines the number of bytes used for any type included on the cell. * - * @param cellItem - * @return numberOfBytes + * @param cellItem item + * @return number of bytes */ int BytePerType(ItemStack cellItem); @@ -39,8 +39,8 @@ public interface IStorageCell extends ICellWorkbenchItem * Must be between 1 and 63, indicates how many types you want to store on * the item. * - * @param cellItem - * @return numberOfTypes + * @param cellItem item + * @return number of types */ int getTotalTypes(ItemStack cellItem); @@ -49,8 +49,8 @@ public interface IStorageCell extends ICellWorkbenchItem * 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 requestedAddition + * @param cellItem item + * @param requestedAddition requested addition * @return true to preventAdditionOfItem */ boolean isBlackListed(ItemStack cellItem, IAEItemStack requestedAddition); @@ -70,7 +70,7 @@ public interface IStorageCell extends ICellWorkbenchItem * Allows an item to selectively enable or disable its status as a storage * cell. * - * @param i + * @param i item * @return if the ItemStack should behavior as a storage cell. */ boolean isStorageCell(ItemStack i); diff --git a/src/api/java/appeng/api/implementations/items/IStorageComponent.java b/src/api/java/appeng/api/implementations/items/IStorageComponent.java index f22bec77..497d2768 100644 --- a/src/api/java/appeng/api/implementations/items/IStorageComponent.java +++ b/src/api/java/appeng/api/implementations/items/IStorageComponent.java @@ -14,16 +14,16 @@ public interface IStorageComponent * but all of AE's default cells do it that way, its currently only used for * the condenser. * - * @param cellItem - * @return numberofBytes + * @param is item + * @return number of bytes */ int getBytes(ItemStack is); /** * Just true or false for the item stack. * - * @param is - * @return + * @param is item + * @return true if item is a storage component */ boolean isStorageComponent(ItemStack is); diff --git a/src/api/java/appeng/api/implementations/items/IUpgradeModule.java b/src/api/java/appeng/api/implementations/items/IUpgradeModule.java index b950f5e1..55a8166b 100644 --- a/src/api/java/appeng/api/implementations/items/IUpgradeModule.java +++ b/src/api/java/appeng/api/implementations/items/IUpgradeModule.java @@ -7,7 +7,7 @@ public interface IUpgradeModule { /** - * @param itemstack + * @param itemstack item with potential upgrades * @return null, or a valid upgrade type. */ Upgrades getType(ItemStack itemstack); diff --git a/src/api/java/appeng/api/implementations/parts/IPartCable.java b/src/api/java/appeng/api/implementations/parts/IPartCable.java index 6aefda8e..16009ca4 100644 --- a/src/api/java/appeng/api/implementations/parts/IPartCable.java +++ b/src/api/java/appeng/api/implementations/parts/IPartCable.java @@ -1,18 +1,18 @@ package appeng.api.implementations.parts; -import java.util.EnumSet; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraftforge.common.util.ForgeDirection; import appeng.api.networking.IGridHost; import appeng.api.parts.BusSupport; import appeng.api.parts.IPart; import appeng.api.parts.IPartHost; import appeng.api.util.AECableType; import appeng.api.util.AEColor; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraftforge.common.util.ForgeDirection; + +import java.util.EnumSet; /** - * Implemented on the {@link IPart}s cable objects that can be placed at {@link ForgeDirection}.UNKNWON in + * Implemented on the {@link IPart}s cable objects that can be placed at {@link ForgeDirection}.UNKNOWN in * {@link IPartHost}s */ public interface IPartCable extends IPart, IGridHost @@ -36,7 +36,7 @@ public interface IPartCable extends IPart, IGridHost /** * Change the color of the cable, this should cost a small amount of dye, or something. * - * @param newColor + * @param newColor new color * @return if the color change was successful. */ boolean changeColor(AEColor newColor, EntityPlayer who); @@ -46,14 +46,14 @@ public interface IPartCable extends IPart, IGridHost * * Called by AE, do not invoke. * - * @param sides + * @param sides sides of cable */ void setValidSides(EnumSet sides); /** * used to tests if a cable connects to neighbors visually. * - * @param side + * @param side neighbor side * @return true if this side is currently connects to an external block. */ boolean isConnected(ForgeDirection side); diff --git a/src/api/java/appeng/api/implementations/tiles/IChestOrDrive.java b/src/api/java/appeng/api/implementations/tiles/IChestOrDrive.java index 76524f69..0b1388b9 100644 --- a/src/api/java/appeng/api/implementations/tiles/IChestOrDrive.java +++ b/src/api/java/appeng/api/implementations/tiles/IChestOrDrive.java @@ -21,7 +21,7 @@ public interface IChestOrDrive extends ICellContainer, IGridHost, IOrientable * * 3 - red * - * @param slot + * @param slot slot index * @return status of the slot, one of the above indices. */ int getCellStatus(int slot); @@ -32,7 +32,7 @@ public interface IChestOrDrive extends ICellContainer, IGridHost, IOrientable boolean isPowered(); /** - * @param slot + * @param slot slot index * @return is the cell currently blinking to show activity. */ boolean isCellBlinking(int slot); diff --git a/src/api/java/appeng/api/implementations/tiles/ICraftingMachine.java b/src/api/java/appeng/api/implementations/tiles/ICraftingMachine.java index 11b5339a..2f6071f5 100644 --- a/src/api/java/appeng/api/implementations/tiles/ICraftingMachine.java +++ b/src/api/java/appeng/api/implementations/tiles/ICraftingMachine.java @@ -10,17 +10,17 @@ public interface ICraftingMachine /** * inserts a crafting plan, and the necessary items into the crafting machine. * - * @param patternDetails - * @param table - * @param ejectionDirection + * @param patternDetails details of pattern + * @param table crafting table + * @param ejectionDirection ejection direction * * @return if it was accepted, all or nothing. */ boolean pushPattern(ICraftingPatternDetails patternDetails, InventoryCrafting table, ForgeDirection ejectionDirection); /** - * check if the crafting machine is accepting pushes via pushPattern, if this is false, all cals to push will fail, - * you can try inserting into the inventry instead. + * check if the crafting machine is accepting pushes via pushPattern, if this is false, all calls to push will fail, + * you can try inserting into the inventory instead. * * @return true, if pushPattern can complete, if its false push will always be false. */ diff --git a/src/api/java/appeng/api/implementations/tiles/ISegmentedInventory.java b/src/api/java/appeng/api/implementations/tiles/ISegmentedInventory.java index 6d001771..b985b044 100644 --- a/src/api/java/appeng/api/implementations/tiles/ISegmentedInventory.java +++ b/src/api/java/appeng/api/implementations/tiles/ISegmentedInventory.java @@ -9,8 +9,8 @@ public interface ISegmentedInventory * Access an internal inventory, note, not all inventories contain real items, some may be ghost items, and treating * them a real inventories will result in duplication. * - * @param name - * @return + * @param name inventory name + * @return inventory with inventory name */ IInventory getInventoryByName(String name); diff --git a/src/api/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java b/src/api/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java index f6ef62fb..943c052e 100644 --- a/src/api/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java +++ b/src/api/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java @@ -1,15 +1,15 @@ -package appeng.api.implementations.tiles; - -import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.networking.security.BaseActionSource; -import appeng.api.storage.IStorageMonitorable; - -/** - * Implemented on inventories that can share their inventories with other networks, best example, ME Interface. - */ -public interface ITileStorageMonitorable -{ - - IStorageMonitorable getMonitorable(ForgeDirection side, BaseActionSource src); - -} +package appeng.api.implementations.tiles; + +import net.minecraftforge.common.util.ForgeDirection; +import appeng.api.networking.security.BaseActionSource; +import appeng.api.storage.IStorageMonitorable; + +/** + * Implemented on inventories that can share their inventories with other networks, best example, ME Interface. + */ +public interface ITileStorageMonitorable +{ + + IStorageMonitorable getMonitorable(ForgeDirection side, BaseActionSource src); + +} diff --git a/src/api/java/appeng/api/implementations/tiles/IWirelessAccessPoint.java b/src/api/java/appeng/api/implementations/tiles/IWirelessAccessPoint.java index ea966ad7..658c1e25 100644 --- a/src/api/java/appeng/api/implementations/tiles/IWirelessAccessPoint.java +++ b/src/api/java/appeng/api/implementations/tiles/IWirelessAccessPoint.java @@ -1,30 +1,30 @@ -package appeng.api.implementations.tiles; - -import appeng.api.networking.IGrid; -import appeng.api.networking.security.IActionHost; -import appeng.api.util.DimensionalCoord; - -public interface IWirelessAccessPoint extends IActionHost -{ - - /** - * @return location of WAP - */ - DimensionalCoord getLocation(); - - /** - * @return max range for this WAP - */ - double getRange(); - - /** - * @return can you use this WAP? - */ - boolean isActive(); - - /** - * @return - */ - IGrid getGrid(); - -} +package appeng.api.implementations.tiles; + +import appeng.api.networking.IGrid; +import appeng.api.networking.security.IActionHost; +import appeng.api.util.DimensionalCoord; + +public interface IWirelessAccessPoint extends IActionHost +{ + + /** + * @return location of WAP + */ + DimensionalCoord getLocation(); + + /** + * @return max range for this WAP + */ + double getRange(); + + /** + * @return can you use this WAP? + */ + boolean isActive(); + + /** + * @return grid of linked WAP + */ + IGrid getGrid(); + +} diff --git a/src/api/java/appeng/api/integration/IBeeComparison.java b/src/api/java/appeng/api/integration/IBeeComparison.java index ab1ccb44..ab515e6d 100644 --- a/src/api/java/appeng/api/integration/IBeeComparison.java +++ b/src/api/java/appeng/api/integration/IBeeComparison.java @@ -1,20 +1,20 @@ package appeng.api.integration; - -/** - * An interface to get access to the individual settings for AE's Internal Bee - * Comparison handler. - * - * Assessable via: ( IBeeComparison ) - * IAEItemStack.getTagCompound().getSpecialComparison() - * - * If you don't have the forestry API, just delete this file when using the API. - */ -public interface IBeeComparison -{ - - /** - * @return the Forestry IIndividual for this comparison object - cast this to a IIndividual if you want to use it. - */ - Object getIndividual(); - + +/** + * An interface to get access to the individual settings for AE's Internal Bee + * Comparison handler. + * + * Assessable via: ( IBeeComparison ) + * IAEItemStack.getTagCompound().getSpecialComparison() + * + * If you don't have the forestry API, just delete this file when using the API. + */ +public interface IBeeComparison +{ + + /** + * @return the Forestry IIndividual for this comparison object - cast this to a IIndividual if you want to use it. + */ + Object getIndividual(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/movable/IMovableHandler.java b/src/api/java/appeng/api/movable/IMovableHandler.java index 3706180d..78817bb0 100644 --- a/src/api/java/appeng/api/movable/IMovableHandler.java +++ b/src/api/java/appeng/api/movable/IMovableHandler.java @@ -10,9 +10,9 @@ public interface IMovableHandler * if you return true from this, your saying you can handle the class, not * that single entity, you cannot opt out of single entities. * - * @param myClass - * @param tile - * @return + * @param myClass tile entity class + * @param tile tile entity + * @return true if it can handle moving */ boolean canHandle(Class myClass, TileEntity tile); @@ -22,19 +22,22 @@ public interface IMovableHandler * already been fully moved. * * Potential Example: - * + * + *
+	 * {@code
 	 * Chunk c = world.getChunkFromBlockCoords( x, z ); c.setChunkBlockTileEntity( x
 	 * & 0xF, y + y, z & 0xF, tile );
 	 * 
 	 * if ( c.isChunkLoaded ) { world.addTileEntity( tile ); world.markBlockForUpdate( x,
 	 * y, z ); }
+	 * }
+	 * 
* - * @param tile - * @param world - * @param x - * @param y - * @param z - * @return + * @param tile to be moved tile + * @param world world of tile + * @param x x coord of tile + * @param y y coord of tile + * @param z z coord of tile */ void moveTile(TileEntity tile, World world, int x, int y, int z); diff --git a/src/api/java/appeng/api/movable/IMovableRegistry.java b/src/api/java/appeng/api/movable/IMovableRegistry.java index 745bea78..6a0d4a9f 100644 --- a/src/api/java/appeng/api/movable/IMovableRegistry.java +++ b/src/api/java/appeng/api/movable/IMovableRegistry.java @@ -39,7 +39,7 @@ public interface IMovableRegistry * You can also use the IMC, FMLInterModComms.sendMessage( "appliedenergistics2", "whitelist-spatial", * "appeng.common.AppEngTile" ); * - * @param blk + * @param blk block */ void blacklistBlock(Block blk); @@ -54,7 +54,7 @@ public interface IMovableRegistry void whiteListTileEntity(Class c); /** - * @param te + * @param te to be moved tile entity * @return true if the tile has accepted your request to move it */ boolean askToMove(TileEntity te); @@ -62,14 +62,14 @@ public interface IMovableRegistry /** * tells the tile you are done moving it. * - * @param te + * @param te moved tile entity */ void doneMoving(TileEntity te); /** * add a new handler movable handler. * - * @param handler + * @param handler moving handler */ void addHandler(IMovableHandler handler); @@ -78,8 +78,8 @@ public interface IMovableRegistry * * only valid after askToMove(...) = true * - * @param te - * @return + * @param te tile entity + * @return moving handler of tile entity */ IMovableHandler getHandler(TileEntity te); @@ -89,7 +89,7 @@ public interface IMovableRegistry IMovableHandler getDefaultHandler(); /** - * @param blk + * @param blk block * @return true if this block is blacklisted */ boolean isBlacklisted(Block blk); diff --git a/src/api/java/appeng/api/movable/IMovableTile.java b/src/api/java/appeng/api/movable/IMovableTile.java index dc65491d..9139a41b 100644 --- a/src/api/java/appeng/api/movable/IMovableTile.java +++ b/src/api/java/appeng/api/movable/IMovableTile.java @@ -11,7 +11,7 @@ public interface IMovableTile * notification that your block will be moved, called instead of invalidate, * return false to prevent movement. * - * @return + * @return false to prevent movement */ boolean prepareToMove(); diff --git a/src/api/java/appeng/api/networking/GridFlags.java b/src/api/java/appeng/api/networking/GridFlags.java index 3884cfab..3a92bbb1 100644 --- a/src/api/java/appeng/api/networking/GridFlags.java +++ b/src/api/java/appeng/api/networking/GridFlags.java @@ -1,45 +1,45 @@ -package appeng.api.networking; - -/** - * Various flags to determine network node behavior. - */ -public enum GridFlags -{ - /** - * import/export buses, terminals, and other devices that use network features, will use this setting. - */ - REQUIRE_CHANNEL, - - /** - * P2P ME tunnels use this setting. - */ - COMPRESSED_CHANNEL, - - /** - * cannot carry channels over this node. - */ - CANNOT_CARRY, - - /** - * Used by P2P Tunnels to prevent tunnels from tunneling recursively. - */ - CANNOT_CARRY_COMPRESSED, - - /** - * This node can transmit 32 signals, this should only apply to Tier2 Cable, P2P Tunnels, and Quantum Network - * Bridges. - */ - DENSE_CAPACITY, - - /** - * This block is part of a multiblock, used in conjunction with REQUIRE_CANNEL, and {@link IGridMultiblock} see this - * interface for details. - */ - MULTIBLOCK, - - /** - * Indicates which path might be preferred, this only matters if two routes of equal length exist, ad only changes - * the order they are processed in. - */ - PREFERED -} +package appeng.api.networking; + +/** + * Various flags to determine network node behavior. + */ +public enum GridFlags +{ + /** + * import/export buses, terminals, and other devices that use network features, will use this setting. + */ + REQUIRE_CHANNEL, + + /** + * P2P ME tunnels use this setting. + */ + COMPRESSED_CHANNEL, + + /** + * cannot carry channels over this node. + */ + CANNOT_CARRY, + + /** + * Used by P2P Tunnels to prevent tunnels from tunneling recursively. + */ + CANNOT_CARRY_COMPRESSED, + + /** + * This node can transmit 32 signals, this should only apply to Tier2 Cable, P2P Tunnels, and Quantum Network + * Bridges. + */ + DENSE_CAPACITY, + + /** + * This block is part of a multiblock, used in conjunction with REQUIRE_CHANNEL, and {@link IGridMultiblock} see this + * interface for details. + */ + MULTIBLOCK, + + /** + * Indicates which path might be preferred, this only matters if two routes of equal length exist, ad only changes + * the order they are processed in. + */ + PREFERRED +} diff --git a/src/api/java/appeng/api/networking/GridNotification.java b/src/api/java/appeng/api/networking/GridNotification.java index 78c4d19d..5a46fb43 100644 --- a/src/api/java/appeng/api/networking/GridNotification.java +++ b/src/api/java/appeng/api/networking/GridNotification.java @@ -1,9 +1,9 @@ -package appeng.api.networking; - -public enum GridNotification -{ - /** - * the visible connections for this node have changed, useful for cable. - */ - ConnectionsChanged, -} +package appeng.api.networking; + +public enum GridNotification +{ + /** + * the visible connections for this node have changed, useful for cable. + */ + ConnectionsChanged, +} diff --git a/src/api/java/appeng/api/networking/IGrid.java b/src/api/java/appeng/api/networking/IGrid.java index 8ce3df19..1751e67e 100644 --- a/src/api/java/appeng/api/networking/IGrid.java +++ b/src/api/java/appeng/api/networking/IGrid.java @@ -1,71 +1,71 @@ -package appeng.api.networking; - -import appeng.api.networking.events.MENetworkEvent; -import appeng.api.util.IReadOnlyCollection; - -/** - * Gives you access to Grid based information. - * - * Don't Implement. - */ -public interface IGrid -{ - - /** - * Get Access to various grid modules - * - * @param iface - * @return the IGridCache you requested. - */ - public C getCache(Class iface); - - /** - * Post an event into the network event bus. - * - * @param ev - * - event to post - * @return returns ev back to original poster - */ - public MENetworkEvent postEvent(MENetworkEvent ev); - - /** - * Post an event into the network event bus, but direct it at a single node. - * - * @param ev - * event to post - * @return returns ev back to original poster - */ - public MENetworkEvent postEventTo(IGridNode node, MENetworkEvent ev); - - /** - * get a list of the diversity of classes, you can use this to better detect which machines your interested in, - * rather then iterating the entire grid to test them. - * - * @return IReadOnlyCollection of all available host types (Of Type IGridHost). - */ - public IReadOnlyCollection> getMachinesClasses(); - - /** - * Get machines on the network. - * - * @param classofIGridHost - * @return IMachineSet of all nodes belonging to hosts of specified class. - */ - public IMachineSet getMachines(Class classofIGridHost); - - /** - * @return IReadOnlyCollection for all nodes on the network, node visitors are prefered. - */ - IReadOnlyCollection getNodes(); - - /** - * @return true if the last node has been removed from the grid. - */ - public boolean isEmpty(); - - /** - * @return the node considered the pivot point of the grid. - */ - public IGridNode getPivot(); - -} +package appeng.api.networking; + +import appeng.api.networking.events.MENetworkEvent; +import appeng.api.util.IReadOnlyCollection; + +/** + * Gives you access to Grid based information. + * + * Don't Implement. + */ +public interface IGrid +{ + + /** + * Get Access to various grid modules + * + * @param iface face + * @return the IGridCache you requested. + */ + public C getCache(Class iface); + + /** + * Post an event into the network event bus. + * + * @param ev + * - event to post + * @return returns ev back to original poster + */ + public MENetworkEvent postEvent(MENetworkEvent ev); + + /** + * Post an event into the network event bus, but direct it at a single node. + * + * @param ev + * event to post + * @return returns ev back to original poster + */ + public MENetworkEvent postEventTo(IGridNode node, MENetworkEvent ev); + + /** + * get a list of the diversity of classes, you can use this to better detect which machines your interested in, + * rather then iterating the entire grid to test them. + * + * @return IReadOnlyCollection of all available host types (Of Type IGridHost). + */ + public IReadOnlyCollection> getMachinesClasses(); + + /** + * Get machines on the network. + * + * @param gridHostClass class of the grid host + * @return IMachineSet of all nodes belonging to hosts of specified class. + */ + public IMachineSet getMachines(Class gridHostClass); + + /** + * @return IReadOnlyCollection for all nodes on the network, node visitors are preferred. + */ + IReadOnlyCollection getNodes(); + + /** + * @return true if the last node has been removed from the grid. + */ + public boolean isEmpty(); + + /** + * @return the node considered the pivot point of the grid. + */ + public IGridNode getPivot(); + +} diff --git a/src/api/java/appeng/api/networking/IGridBlock.java b/src/api/java/appeng/api/networking/IGridBlock.java index 730e2e80..379d2f0d 100644 --- a/src/api/java/appeng/api/networking/IGridBlock.java +++ b/src/api/java/appeng/api/networking/IGridBlock.java @@ -1,88 +1,89 @@ -package appeng.api.networking; - -import java.util.EnumSet; - -import net.minecraft.item.ItemStack; -import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.parts.IPart; -import appeng.api.util.AEColor; -import appeng.api.util.DimensionalCoord; - -/** - * An Implementation is required to create your node for IGridHost - * - * Implement for use with IGridHost - */ -public interface IGridBlock -{ - - /** - * how much power to drain per tick as part of idle network usage. - * - * if the value of this changes, you must post a MENetworkPowerIdleChange - * - * @return ae/t to use. - */ - double getIdlePowerUsage(); - - /** - * Various flags that AE uses to modify basic behavior for various parts of the network. - * - * @return Set of flags for this IGridBlock - */ - EnumSet getFlags(); - - /** - * generally speaking you will return true for this, the one exception is buses, or worm holes where the node - * represents something that isn't a real connection in the world, but rather one represented internally to the - * block. - * - * @return if the world can connect to this node, and the node can connect to the world. - */ - boolean isWorldAccessable(); - - /** - * @return current location of this node - */ - DimensionalCoord getLocation(); - - /** - * @return Transparent, or a valid color, NULL IS NOT A VALID RETURN - */ - AEColor getGridColor(); - - /** - * Notifies your IGridBlock that changes were made to your connections - */ - void onGridNotification(GridNotification notification); - - /** - * Update Blocks network/connection/booting status. grid, - * - * @param isReady - */ - public void setNetworkStatus(IGrid grid, int channelsInUse); - - /** - * Determine which sides of the block can be connected too, only used when isWorldAccessable returns true, not used - * for {@link IPart} implementations. - */ - EnumSet getConnectableSides(); - - /** - * @return the IGridHost for the node, this will be an IGridPart or a TileEntity generally speaking. - */ - IGridHost getMachine(); - - /** - * called when the grid for the node has changed, the general grid state should not be trusted at this point. - */ - void gridChanged(); - - /** - * Determines what item stack is used to render this node in the GUI. - * - * @return the render item stack to use to render this node, null is valid, and will not show this node. - */ - public ItemStack getMachineRepresentation(); -} +package appeng.api.networking; + +import appeng.api.parts.IPart; +import appeng.api.util.AEColor; +import appeng.api.util.DimensionalCoord; +import net.minecraft.item.ItemStack; +import net.minecraftforge.common.util.ForgeDirection; + +import java.util.EnumSet; + +/** + * An Implementation is required to create your node for IGridHost + * + * Implement for use with IGridHost + */ +public interface IGridBlock +{ + + /** + * how much power to drain per tick as part of idle network usage. + * + * if the value of this changes, you must post a MENetworkPowerIdleChange + * + * @return ae/t to use. + */ + double getIdlePowerUsage(); + + /** + * Various flags that AE uses to modify basic behavior for various parts of the network. + * + * @return Set of flags for this IGridBlock + */ + EnumSet getFlags(); + + /** + * generally speaking you will return true for this, the one exception is buses, or worm holes where the node + * represents something that isn't a real connection in the world, but rather one represented internally to the + * block. + * + * @return if the world can connect to this node, and the node can connect to the world. + */ + boolean isWorldAccessible(); + + /** + * @return current location of this node + */ + DimensionalCoord getLocation(); + + /** + * @return Transparent, or a valid color, NULL IS NOT A VALID RETURN + */ + AEColor getGridColor(); + + /** + * Notifies your IGridBlock that changes were made to your connections + */ + void onGridNotification(GridNotification notification); + + /** + * Update Blocks network/connection/booting status. grid, + * + * @param grid grid + * @param channelsInUse used channels + */ + public void setNetworkStatus(IGrid grid, int channelsInUse); + + /** + * Determine which sides of the block can be connected too, only used when isWorldAccessible returns true, not used + * for {@link IPart} implementations. + */ + EnumSet getConnectableSides(); + + /** + * @return the IGridHost for the node, this will be an IGridPart or a TileEntity generally speaking. + */ + IGridHost getMachine(); + + /** + * called when the grid for the node has changed, the general grid state should not be trusted at this point. + */ + void gridChanged(); + + /** + * Determines what item stack is used to render this node in the GUI. + * + * @return the render item stack to use to render this node, null is valid, and will not show this node. + */ + public ItemStack getMachineRepresentation(); +} diff --git a/src/api/java/appeng/api/networking/IGridCache.java b/src/api/java/appeng/api/networking/IGridCache.java index 7fe0d457..3e608aae 100644 --- a/src/api/java/appeng/api/networking/IGridCache.java +++ b/src/api/java/appeng/api/networking/IGridCache.java @@ -1,71 +1,71 @@ -package appeng.api.networking; - -/** - * - * Allows you to create a network wise service, AE2 uses these for providing - * item, spatial, and tunnel services. - * - * Any Class that implements this, should have a public default constructor that - * takes a single argument of type IGrid. - * - */ -public interface IGridCache -{ - - /** - * Called each tick for the network, allows you to have active network wide - * behaviors. - * - */ - void onUpdateTick(); - - /** - * inform your cache, that a machine was removed from the grid. - * - * Important: Do not trust the grids state in this method, interact only - * with the node you are passed, if you need to manage other grid - * information, do it on the next updateTick. - * - * @param gridNode - * @param machine - */ - void removeNode(IGridNode gridNode, IGridHost machine); - - /** - * informs you cache that a machine was added to the grid. - * - * Important: Do not trust the grids state in this method, interact only - * with the node you are passed, if you need to manage other grid - * information, do it on the next updateTick. - * - * @param gridNode - * @param machine - */ - void addNode(IGridNode gridNode, IGridHost machine); - - /** - * Called when a grid splits into two grids, AE will call a split as it - * Iteratively processes changes. The destination should receive half, and - * the current cache should receive half. - * - * @param destinationStorage - */ - void onSplit(IGridStorage destinationStorage); - - /** - * Called when two grids merge into one, AE will call a join as it - * Iteratively processes changes. Use this method to incorporate all the - * data from the source into your cache. - * - * @param sourceStorage - */ - void onJoin(IGridStorage sourceStorage); - - /** - * Called when saving changes, - * - * @param destinationStorage - */ - void populateGridStorage(IGridStorage destinationStorage); - -} +package appeng.api.networking; + +/** + * + * Allows you to create a network wise service, AE2 uses these for providing + * item, spatial, and tunnel services. + * + * Any Class that implements this, should have a public default constructor that + * takes a single argument of type IGrid. + * + */ +public interface IGridCache +{ + + /** + * Called each tick for the network, allows you to have active network wide + * behaviors. + * + */ + void onUpdateTick(); + + /** + * inform your cache, that a machine was removed from the grid. + * + * Important: Do not trust the grids state in this method, interact only + * with the node you are passed, if you need to manage other grid + * information, do it on the next updateTick. + * + * @param gridNode removed from that grid + * @param machine to be removed machine + */ + void removeNode(IGridNode gridNode, IGridHost machine); + + /** + * informs you cache that a machine was added to the grid. + * + * Important: Do not trust the grids state in this method, interact only + * with the node you are passed, if you need to manage other grid + * information, do it on the next updateTick. + * + * @param gridNode added to grid node + * @param machine to be added machine + */ + void addNode(IGridNode gridNode, IGridHost machine); + + /** + * Called when a grid splits into two grids, AE will call a split as it + * Iteratively processes changes. The destination should receive half, and + * the current cache should receive half. + * + * @param destinationStorage storage which receives half of old grid + */ + void onSplit(IGridStorage destinationStorage); + + /** + * Called when two grids merge into one, AE will call a join as it + * Iteratively processes changes. Use this method to incorporate all the + * data from the source into your cache. + * + * @param sourceStorage old storage + */ + void onJoin(IGridStorage sourceStorage); + + /** + * Called when saving changes, + * + * @param destinationStorage storage + */ + void populateGridStorage(IGridStorage destinationStorage); + +} diff --git a/src/api/java/appeng/api/networking/IGridCacheRegistry.java b/src/api/java/appeng/api/networking/IGridCacheRegistry.java index d1b68b83..bd36fe29 100644 --- a/src/api/java/appeng/api/networking/IGridCacheRegistry.java +++ b/src/api/java/appeng/api/networking/IGridCacheRegistry.java @@ -1,28 +1,27 @@ -package appeng.api.networking; - -import java.util.HashMap; - -/** - * 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. ) - */ - void registerGridCache(Class iface, Class implementation); - - /** - * requests a new instance of a grid cache for use, used internally - * - * @param grid - * - * @return a new HashMap of IGridCaches from the registry, called from IGrid when constructing a new grid. - */ - HashMap, IGridCache> createCacheInstance(IGrid grid); - -} +package appeng.api.networking; + +import java.util.HashMap; + +/** + * 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 iface grid cache class + */ + void registerGridCache(Class iface, Class implementation); + + /** + * requests a new instance of a grid cache for use, used internally + * + * @param grid grid + * + * @return a new HashMap of IGridCaches from the registry, called from IGrid when constructing a new grid. + */ + HashMap, IGridCache> createCacheInstance(IGrid grid); + +} diff --git a/src/api/java/appeng/api/networking/IGridConnection.java b/src/api/java/appeng/api/networking/IGridConnection.java index 9e07090a..bbeea1b5 100644 --- a/src/api/java/appeng/api/networking/IGridConnection.java +++ b/src/api/java/appeng/api/networking/IGridConnection.java @@ -1,58 +1,58 @@ -package appeng.api.networking; - -import net.minecraftforge.common.util.ForgeDirection; - -/** - * Access to AE's internal grid connections. - * - * Messing with connection is generally completely unnecessary, you should be able to just use IGridNode.updateState() - * to have AE manage them for you. - * - * Don't Implement. - */ -public interface IGridConnection -{ - - /** - * lets you get the opposing node of the connection by passing your own node. - * - * @param gridNode - * @return the IGridNode which represents the opposite side of the connection. - */ - IGridNode getOtherSide(IGridNode gridNode); - - /** - * determine the direction of the connection based on your node. - * - * @param gridNode - * @return the direction of the connection, only valid for in world connections. - */ - ForgeDirection getDirection(IGridNode gridNode); - - /** - * by destroying a connection you may create new grids, and trigger un-expected behavior, you should only destroy - * connections if you created them. - */ - void destroy(); - - /** - * @return node A - */ - IGridNode a(); - - /** - * @return node B - */ - IGridNode b(); - - /** - * @return if the connection is invisible this returns false - */ - boolean hasDirection(); - - /** - * @return how many channels pass over this connections. - */ - int getUsedChannels(); - +package appeng.api.networking; + +import net.minecraftforge.common.util.ForgeDirection; + +/** + * Access to AE's internal grid connections. + * + * Messing with connection is generally completely unnecessary, you should be able to just use IGridNode.updateState() + * to have AE manage them for you. + * + * Don't Implement. + */ +public interface IGridConnection +{ + + /** + * lets you get the opposing node of the connection by passing your own node. + * + * @param gridNode current grid node + * @return the IGridNode which represents the opposite side of the connection. + */ + IGridNode getOtherSide(IGridNode gridNode); + + /** + * determine the direction of the connection based on your node. + * + * @param gridNode current grid node + * @return the direction of the connection, only valid for in world connections. + */ + ForgeDirection getDirection(IGridNode gridNode); + + /** + * by destroying a connection you may create new grids, and trigger un-expected behavior, you should only destroy + * connections if you created them. + */ + void destroy(); + + /** + * @return node A + */ + IGridNode a(); + + /** + * @return node B + */ + IGridNode b(); + + /** + * @return if the connection is invisible this returns false + */ + boolean hasDirection(); + + /** + * @return how many channels pass over this connections. + */ + int getUsedChannels(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/networking/IGridConnecitonVisitor.java b/src/api/java/appeng/api/networking/IGridConnectionVisitor.java similarity index 75% rename from src/api/java/appeng/api/networking/IGridConnecitonVisitor.java rename to src/api/java/appeng/api/networking/IGridConnectionVisitor.java index b3da721c..d79ce670 100644 --- a/src/api/java/appeng/api/networking/IGridConnecitonVisitor.java +++ b/src/api/java/appeng/api/networking/IGridConnectionVisitor.java @@ -1,6 +1,6 @@ package appeng.api.networking; -public interface IGridConnecitonVisitor extends IGridVisitor +public interface IGridConnectionVisitor extends IGridVisitor { /** diff --git a/src/api/java/appeng/api/networking/IGridHost.java b/src/api/java/appeng/api/networking/IGridHost.java index f69b347f..818cb741 100644 --- a/src/api/java/appeng/api/networking/IGridHost.java +++ b/src/api/java/appeng/api/networking/IGridHost.java @@ -1,43 +1,43 @@ -package appeng.api.networking; - -import net.minecraft.tileentity.TileEntity; -import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.parts.IPart; -import appeng.api.util.AECableType; - -/** - * - * Implement to create a networked {@link TileEntity} or {@link IPart} must - * be implemented for a part, or tile entity to become part of a grid. - * - */ -public interface IGridHost -{ - - /** - * get the grid node for a particular side of a block, you can return null, - * by returning a valid node later and calling updateState, you can join the - * Grid when your block is ready. - * - * @param dir - * feel free to ignore this, most blocks will use the same node - * for every side. - * @return a new IGridNode, create these with - * AEApi.instance().createGridNode( MyIGridBlock ) - */ - public IGridNode getGridNode(ForgeDirection dir); - - /** - * Determines how cables render when they connect to this block. Priority is - * Smart > Covered > Glass - * - * @param dir - */ - public AECableType getCableConnectionType(ForgeDirection dir); - - /** - * break this host, its violating security rules, just break your block, or part. - */ - public void securityBreak(); - -} +package appeng.api.networking; + +import net.minecraft.tileentity.TileEntity; +import net.minecraftforge.common.util.ForgeDirection; +import appeng.api.parts.IPart; +import appeng.api.util.AECableType; + +/** + * + * Implement to create a networked {@link TileEntity} or {@link IPart} must + * be implemented for a part, or tile entity to become part of a grid. + * + */ +public interface IGridHost +{ + + /** + * get the grid node for a particular side of a block, you can return null, + * by returning a valid node later and calling updateState, you can join the + * Grid when your block is ready. + * + * @param dir + * feel free to ignore this, most blocks will use the same node + * for every side. + * @return a new IGridNode, create these with + * AEApi.instance().createGridNode( MyIGridBlock ) + */ + public IGridNode getGridNode(ForgeDirection dir); + + /** + * Determines how cables render when they connect to this block. Priority is + * Smart > Covered > Glass + * + * @param dir direction + */ + public AECableType getCableConnectionType(ForgeDirection dir); + + /** + * break this host, its violating security rules, just break your block, or part. + */ + public void securityBreak(); + +} diff --git a/src/api/java/appeng/api/networking/IGridNode.java b/src/api/java/appeng/api/networking/IGridNode.java index bb99e2c0..30a3bb5f 100644 --- a/src/api/java/appeng/api/networking/IGridNode.java +++ b/src/api/java/appeng/api/networking/IGridNode.java @@ -1,141 +1,141 @@ -package appeng.api.networking; - -import java.util.EnumSet; - -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.world.World; -import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.IAppEngApi; -import appeng.api.util.IReadOnlyCollection; - -/** - * - * Gives you a view into your Nodes connections and information. - * - * updateState, getGrid, destroy are required to implement a proper IGridHost. - * - * Don't Implement; Acquire from {@link IAppEngApi}.createGridNode - * - */ -public interface IGridNode -{ - - /** - * lets you walk the grid stating at the current node using a IGridVisitor, generally not needed, please use only if - * required. - * - * @param g - */ - void beginVisition(IGridVisitor g); - - /** - * inform the node that your IGridBlock has changed its internal state, and force the node to update. - * - * ALWAYS make sure that your tile entity is in the world, and has its node properly saved to be returned from the - * host before updating state, - * - * If your entity is not in the world, or if you IGridHost returns a different node for the same side you will - * likely crash the game. - * - */ - void updateState(); - - /** - * get the machine represented by the node. - * - * @return - */ - IGridHost getMachine(); - - /** - * get the grid for the node, this can change at a moments notice. - * - * @return - */ - IGrid getGrid(); - - /** - * By destroying your node, you destroy any connections, and its existence in the grid, use in invalidate, or - * onChunkUnload - */ - void destroy(); - - /** - * @return the world the node is located in - */ - World getWorld(); - - /** - * - * @return a set of the connected sides, UNKNOWN represents an invisible connection - */ - EnumSet getConnectedSides(); - - /** - * lets you iterate a nodes connections - * - * @return - */ - IReadOnlyCollection getConnections(); - - /** - * @return the IGridBlock for this node - */ - IGridBlock getGridBlock(); - - /** - * Reflects the networks status, returns true only if the network is powered, and the network is not booting, this - * also takes into account channels. - * - * @return true if is Network node active, and participating. - */ - boolean isActive(); - - /** - * this should be called for each node you create, if you have a nodeData compound to load from, you can store all - * your nods on a single compound using name. - * - * Important: You must call this before updateState. - * - * @param name - * @param nodeData - */ - void loadFromNBT(String name, NBTTagCompound nodeData); - - /** - * this should be called for each node you maintain, you can save all your nodes to the same tag with different - * names, if you fail to complete the load / save procedure, network state may be lost between game load/saves. - * - * @param name - * @param nodeData - */ - void saveToNBT(String name, NBTTagCompound nodeData); - - /** - * @return if the node's channel requirements are currently met, use this for display purposes, use isActive for - * status. - */ - boolean meetsChannelRequirements(); - - /** - * see if this node has a certain flag - * - * @param tier2Capacity - * @return - */ - boolean hasFlag(GridFlags flag); - - /** - * tell the node who was responsible for placing it, failure to do this may result in in-compatibility with the - * security system. Called instead of loadFromNBT when intialily placed, once set never required again, the value is saved with the Node NBT. - * - * @param p - */ - void setPlayerID(int playerID); - - /** - * @return the ownerID this represents the person who placed the node. - */ - int getPlayerID(); - +package appeng.api.networking; + +import appeng.api.IAppEngApi; +import appeng.api.util.IReadOnlyCollection; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.world.World; +import net.minecraftforge.common.util.ForgeDirection; + +import java.util.EnumSet; + +/** + * + * Gives you a view into your Nodes connections and information. + * + * updateState, getGrid, destroy are required to implement a proper IGridHost. + * + * Don't Implement; Acquire from {@link IAppEngApi}.createGridNode + * + */ +public interface IGridNode +{ + + /** + * lets you walk the grid stating at the current node using a IGridVisitor, generally not needed, please use only if + * required. + * + * @param visitor visitor + */ + void beginVisit(IGridVisitor visitor); + + /** + * inform the node that your IGridBlock has changed its internal state, and force the node to update. + * + * ALWAYS make sure that your tile entity is in the world, and has its node properly saved to be returned from the + * host before updating state, + * + * If your entity is not in the world, or if you IGridHost returns a different node for the same side you will + * likely crash the game. + * + */ + void updateState(); + + /** + * get the machine represented by the node. + * + * @return grid host + */ + IGridHost getMachine(); + + /** + * get the grid for the node, this can change at a moments notice. + * + * @return grid + */ + IGrid getGrid(); + + /** + * By destroying your node, you destroy any connections, and its existence in the grid, use in invalidate, or + * onChunkUnload + */ + void destroy(); + + /** + * @return the world the node is located in + */ + World getWorld(); + + /** + * + * @return a set of the connected sides, UNKNOWN represents an invisible connection + */ + EnumSet getConnectedSides(); + + /** + * lets you iterate a nodes connections + * + * @return grid connections + */ + IReadOnlyCollection getConnections(); + + /** + * @return the IGridBlock for this node + */ + IGridBlock getGridBlock(); + + /** + * Reflects the networks status, returns true only if the network is powered, and the network is not booting, this + * also takes into account channels. + * + * @return true if is Network node active, and participating. + */ + boolean isActive(); + + /** + * this should be called for each node you create, if you have a nodeData compound to load from, you can store all + * your nods on a single compound using name. + * + * Important: You must call this before updateState. + * + * @param name nbt name + * @param nodeData to be loaded data + */ + void loadFromNBT(String name, NBTTagCompound nodeData); + + /** + * this should be called for each node you maintain, you can save all your nodes to the same tag with different + * names, if you fail to complete the load / save procedure, network state may be lost between game load/saves. + * + * @param name nbt name + * @param nodeData to be saved data + */ + void saveToNBT(String name, NBTTagCompound nodeData); + + /** + * @return if the node's channel requirements are currently met, use this for display purposes, use isActive for + * status. + */ + boolean meetsChannelRequirements(); + + /** + * see if this node has a certain flag + * + * @param flag flags + * @return true if has flag + */ + boolean hasFlag(GridFlags flag); + + /** + * tell the node who was responsible for placing it, failure to do this may result in in-compatibility with the + * security system. Called instead of loadFromNBT when initially placed, once set never required again, the value is saved with the Node NBT. + * + * @param playerID new player id + */ + void setPlayerID(int playerID); + + /** + * @return the ownerID this represents the person who placed the node. + */ + int getPlayerID(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/networking/IGridVisitor.java b/src/api/java/appeng/api/networking/IGridVisitor.java index 2593160f..0b85b07f 100644 --- a/src/api/java/appeng/api/networking/IGridVisitor.java +++ b/src/api/java/appeng/api/networking/IGridVisitor.java @@ -1,21 +1,21 @@ -package appeng.api.networking; - -/** - * Simple Visitor pattern access to network nodes. - */ -public interface IGridVisitor -{ - - /** - * Called for each node on the network. - * - * By returning false your informing the host to stop visiting nodes beyond the current node. - * - * @param n - * the current node. - * - * @return true to continue visiting nodes beyond this node. - */ - public boolean visitNode(IGridNode n); - -} +package appeng.api.networking; + +/** + * Simple Visitor pattern access to network nodes. + */ +public interface IGridVisitor +{ + + /** + * Called for each node on the network. + * + * By returning false your informing the host to stop visiting nodes beyond the current node. + * + * @param n + * the current node. + * + * @return true to continue visiting nodes beyond this node. + */ + public boolean visitNode(IGridNode n); + +} diff --git a/src/api/java/appeng/api/networking/crafting/ICraftingGrid.java b/src/api/java/appeng/api/networking/crafting/ICraftingGrid.java index 65890cca..8ac1dc83 100644 --- a/src/api/java/appeng/api/networking/crafting/ICraftingGrid.java +++ b/src/api/java/appeng/api/networking/crafting/ICraftingGrid.java @@ -1,24 +1,23 @@ package appeng.api.networking.crafting; -import java.util.concurrent.Future; - -import net.minecraft.world.World; import appeng.api.networking.IGrid; import appeng.api.networking.IGridCache; import appeng.api.networking.security.BaseActionSource; import appeng.api.storage.data.IAEItemStack; - import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableSet; +import net.minecraft.world.World; + +import java.util.concurrent.Future; public interface ICraftingGrid extends IGridCache { /** - * @param whatToCraft - * @param world - * @param slot - * @param details + * @param whatToCraft requested craft + * @param world crafting world + * @param slot slot index + * @param details pattern details * @return a collection of crafting patterns for the item in question. */ ImmutableCollection getCraftingFor(IAEItemStack whatToCraft, ICraftingPatternDetails details, int slot, World world); @@ -26,11 +25,11 @@ public interface ICraftingGrid extends IGridCache /** * Begin calculating a crafting job. * - * @param world - * @param grid - * @param actionSrc - * @param craftWhat - * @param callback + * @param world crafting world + * @param grid network + * @param actionSrc source + * @param craftWhat result + * @param callback callback * -- optional * * @return a future which will at an undetermined point in the future get you the {@link ICraftingJob} do not wait @@ -41,18 +40,18 @@ public interface ICraftingGrid extends IGridCache /** * Submit the job to the Crafting system for processing. * - * @param result + * @param job * - the crafting job from beginCraftingJob * @param requestingMachine * - a machine if its being requested via automation, may be null. - * @param cpu + * @param target * - can be null * * @param prioritizePower * - if cpu is null, this determine if the system should prioritize power, or if it should find the lower * end cpus, automatic processes generally should pick lower end cpus. * - * @param actionSrc + * @param src * - the action source to use when starting the job, this will be used for extracting items, should * usually be the same as the one provided to beginCraftingJob. * @@ -69,7 +68,7 @@ public interface ICraftingGrid extends IGridCache ImmutableSet getCpus(); /** - * @param what + * @param what to be requested item * @return true if the item can be requested via a crafting emitter. */ boolean canEmitFor(IAEItemStack what); @@ -77,8 +76,8 @@ public interface ICraftingGrid extends IGridCache /** * is this item being crafted? * - * @param aeStackInSlot - * @return + * @param aeStackInSlot item being crafted + * @return true if it is being crafting */ boolean isRequesting(IAEItemStack aeStackInSlot); diff --git a/src/api/java/appeng/api/networking/crafting/ICraftingJob.java b/src/api/java/appeng/api/networking/crafting/ICraftingJob.java index fcef0f94..8eeb29eb 100644 --- a/src/api/java/appeng/api/networking/crafting/ICraftingJob.java +++ b/src/api/java/appeng/api/networking/crafting/ICraftingJob.java @@ -21,7 +21,7 @@ public interface ICraftingJob * Populates the plan list with stack size, and requestable values that represent the stored, and crafting job * contents respectively. * - * @param plan + * @param plan plan */ void populatePlan(IItemList plan); diff --git a/src/api/java/appeng/api/networking/crafting/ICraftingLink.java b/src/api/java/appeng/api/networking/crafting/ICraftingLink.java index d1a480c6..be7f4f38 100644 --- a/src/api/java/appeng/api/networking/crafting/ICraftingLink.java +++ b/src/api/java/appeng/api/networking/crafting/ICraftingLink.java @@ -28,7 +28,7 @@ public interface ICraftingLink /** * write the link to an NBT Tag * - * @param tag + * @param tag to be written data */ void writeToNBT(NBTTagCompound tag); diff --git a/src/api/java/appeng/api/networking/crafting/ICraftingMedium.java b/src/api/java/appeng/api/networking/crafting/ICraftingMedium.java index ba27d8c9..b84e7937 100644 --- a/src/api/java/appeng/api/networking/crafting/ICraftingMedium.java +++ b/src/api/java/appeng/api/networking/crafting/ICraftingMedium.java @@ -12,9 +12,8 @@ public interface ICraftingMedium * instruct a medium to create the item represented by the pattern+details, the items on the table, and where if * possible the output should be directed. * - * @param pattern - * @param patternDetails - * @param table + * @param patternDetails details + * @param table crafting table * @return if the pattern was successfully pushed. */ boolean pushPattern(ICraftingPatternDetails patternDetails, InventoryCrafting table); diff --git a/src/api/java/appeng/api/networking/crafting/ICraftingPatternDetails.java b/src/api/java/appeng/api/networking/crafting/ICraftingPatternDetails.java index f364e5e7..0fb4eb34 100644 --- a/src/api/java/appeng/api/networking/crafting/ICraftingPatternDetails.java +++ b/src/api/java/appeng/api/networking/crafting/ICraftingPatternDetails.java @@ -9,7 +9,7 @@ import appeng.api.storage.data.IAEItemStack; /** * do not implement provided by {@link ICraftingPatternItem} * - * caching this instance will increase preformance of validation and checks. + * caching this instance will increase performance of validation and checks. */ public interface ICraftingPatternDetails { @@ -20,9 +20,9 @@ public interface ICraftingPatternDetails ItemStack getPattern(); /** - * @param slotIndex - * @param itemStack - * @param world + * @param slotIndex specific slot index + * @param itemStack item in slot + * @param world crafting world * * @return if an item can be used in the specific slot for this pattern. */ @@ -41,12 +41,12 @@ public interface ICraftingPatternDetails /** * @return a list of the inputs, will be clean */ - IAEItemStack[] getCondencedInputs(); + IAEItemStack[] getCondensedInputs(); /** * @return a list of the outputs, will be clean */ - IAEItemStack[] getCondencedOutputs(); + IAEItemStack[] getCondensedOutputs(); /** * @return a list of the outputs, will include nulls. @@ -59,10 +59,10 @@ public interface ICraftingPatternDetails boolean canSubstitute(); /** - * Allow using this instance of the pattern details to preform the crafting action with preformance enhancements. + * Allow using this instance of the pattern details to preform the crafting action with performance enhancements. * - * @param craftingInv - * @param world + * @param craftingInv inventory + * @param world crafting world * @return the crafted ( work bench ) item. */ ItemStack getOutput(InventoryCrafting craftingInv, World world); @@ -70,8 +70,14 @@ public interface ICraftingPatternDetails /** * Set the priority the of this pattern. * - * @param priority + * @param priority priority of pattern */ void setPriority(int priority); + /** + * Get the priority of this pattern + * + * @return the priority of this pattern + */ + int getPriority(); } diff --git a/src/api/java/appeng/api/networking/crafting/ICraftingProvider.java b/src/api/java/appeng/api/networking/crafting/ICraftingProvider.java index 11faa2b1..edd05177 100644 --- a/src/api/java/appeng/api/networking/crafting/ICraftingProvider.java +++ b/src/api/java/appeng/api/networking/crafting/ICraftingProvider.java @@ -12,7 +12,7 @@ public interface ICraftingProvider extends ICraftingMedium /** * called when the network is looking for possible crafting jobs. * - * @param craftingTracker + * @param craftingTracker crafting helper */ void provideCrafting(ICraftingProviderHelper craftingTracker); diff --git a/src/api/java/appeng/api/networking/crafting/ICraftingRequester.java b/src/api/java/appeng/api/networking/crafting/ICraftingRequester.java index c0eabbe0..0f29bdcf 100644 --- a/src/api/java/appeng/api/networking/crafting/ICraftingRequester.java +++ b/src/api/java/appeng/api/networking/crafting/ICraftingRequester.java @@ -21,11 +21,11 @@ public interface ICraftingRequester extends IActionHost * items are injected into the requester as they are completed, any items that cannot be taken, or are unwanted can * be returned. * - * @param items - * @param mode - * @return + * @param items item + * @param mode action mode + * @return unwanted item */ - IAEItemStack injectCratedItems(ICraftingLink link, IAEItemStack items, Actionable mode); + IAEItemStack injectCraftedItems(ICraftingLink link, IAEItemStack items, Actionable mode); /** * called when the job changes from in progress, to either complete, or canceled. diff --git a/src/api/java/appeng/api/networking/crafting/ICraftingWatcherHost.java b/src/api/java/appeng/api/networking/crafting/ICraftingWatcherHost.java index 4cc7ee30..b5ae4384 100644 --- a/src/api/java/appeng/api/networking/crafting/ICraftingWatcherHost.java +++ b/src/api/java/appeng/api/networking/crafting/ICraftingWatcherHost.java @@ -6,18 +6,18 @@ public interface ICraftingWatcherHost { /** - * provides the ICraftngiWatcher for this host, for the current network, is called when the hot changes networks. + * provides the ICraftingWatcher for this host, for the current network, is called when the hot changes networks. * You do not need to clear your old watcher, its already been removed by the time this gets called. * - * @param newWatcher + * @param newWatcher crafting watcher for this host */ void updateWatcher(ICraftingWatcher newWatcher); /** * Called when a crafting status changes. * - * @param craftingGrid - * @param what + * @param craftingGrid current crafting grid + * @param what change */ void onRequestChange(ICraftingGrid craftingGrid, IAEItemStack what); diff --git a/src/api/java/appeng/api/networking/energy/IAEPowerStorage.java b/src/api/java/appeng/api/networking/energy/IAEPowerStorage.java index 3256ed27..a97c5e60 100644 --- a/src/api/java/appeng/api/networking/energy/IAEPowerStorage.java +++ b/src/api/java/appeng/api/networking/energy/IAEPowerStorage.java @@ -12,9 +12,10 @@ public interface IAEPowerStorage extends IEnergySource /** * Inject amt, power into the device, it will store what it can, and return the amount unable to be stored. * - * @param simulate + * @param amt to be injected amount + * @param mode action mode * - * @return + * @return amount of power which was unable to be stored */ public double injectAEPower(double amt, Actionable mode); @@ -32,14 +33,14 @@ public interface IAEPowerStorage extends IEnergySource * Checked on network reset to see if your block can be used as a public power storage ( use getPowerFlow to control * the behavior ) * - * @return + * @return true if it can be used as a public power storage */ public boolean isAEPublicPowerStorage(); /** * Control the power flow by telling what the network can do, either add? or subtract? or both! * - * @return + * @return access restriction what the network can do */ public AccessRestriction getPowerFlow(); diff --git a/src/api/java/appeng/api/networking/energy/IEnergyGrid.java b/src/api/java/appeng/api/networking/energy/IEnergyGrid.java index 041cfebb..61c0613c 100644 --- a/src/api/java/appeng/api/networking/energy/IEnergyGrid.java +++ b/src/api/java/appeng/api/networking/energy/IEnergyGrid.java @@ -1,82 +1,82 @@ -package appeng.api.networking.energy; - -import appeng.api.config.Actionable; -import appeng.api.networking.IGridCache; -import appeng.api.networking.events.MENetworkPowerStatusChange; - -/** - * AE's Power system. - */ -public interface IEnergyGrid extends IGridCache, IEnergySource, IEnergyGridProvider -{ - - /** - * @return the current calculated idle energy drain each tick, is used internally to drain power for each tick. - */ - public double getIdlePowerUsage(); - - /** - * @return the average power drain over the past 10 ticks, includes idle usage during this time, and all use of - * extractPower. - */ - public double getAvgPowerUsage(); - - /** - * @return the average energy injected into the system per tick, for the last 10 ticks. - */ - public double getAvgPowerInjection(); - - /** - * AE maintains an idle draw of power separate from active power draw, it condenses this into a single operation - * that determines the networks "powered state" if the network is considered off-line, your machines should not - * function. - * - * {@link MENetworkPowerStatusChange} events are posted when this value changes if you need to be notified of the - * change, most machines can simply test the value when they operate. - * - * @return if the network is powered or not. - */ - public boolean isNetworkPowered(); - - /** - * AE will accept any power, and store it, to maintain sanity please don't send more then 10,000 at a time. - * - * IMPORTANT: Network power knows no bounds, for less spamy power flow, networks can store more then their alloted - * storage, however, it should be kept to a minimum, to help with this, this method returns the networks current - * OVERFLOW, this is not energy you can store some where else, its already stored in the network, you can extract it - * if you want, however it it owned by the network, this is different then IAEEnergyStore - * - * Another important note, is that if a network that had overflow is deleted, its power is gone, this is one of the - * reasons why keeping overflow to a minimum is important. - * - * @param amt - * power to inject into the network - * @param mode - * should the action be simulated or performed? - * @return the amount of power that the network has OVER the limit. - */ - public double injectPower(double amt, Actionable mode); - - /** - * this is should be considered an estimate, and not relied upon for real calculations. - * - * @return estimated available power. - */ - public double getStoredPower(); - - /** - * this is should be considered an estimate, and not relied upon for real calculations. - * - * @return estimated available power. - */ - double getMaxStoredPower(); - - /** - * Calculation will be capped at maxRequired, this improves performance by limiting the number of nodes needed to - * calculate the demand. - * - * @return Amount of power required to charge the grid, in AE. - */ - public double getEnergyDemand(double maxRequired); - -} +package appeng.api.networking.energy; + +import appeng.api.config.Actionable; +import appeng.api.networking.IGridCache; +import appeng.api.networking.events.MENetworkPowerStatusChange; + +/** + * AE's Power system. + */ +public interface IEnergyGrid extends IGridCache, IEnergySource, IEnergyGridProvider +{ + + /** + * @return the current calculated idle energy drain each tick, is used internally to drain power for each tick. + */ + public double getIdlePowerUsage(); + + /** + * @return the average power drain over the past 10 ticks, includes idle usage during this time, and all use of + * extractPower. + */ + public double getAvgPowerUsage(); + + /** + * @return the average energy injected into the system per tick, for the last 10 ticks. + */ + public double getAvgPowerInjection(); + + /** + * AE maintains an idle draw of power separate from active power draw, it condenses this into a single operation + * that determines the networks "powered state" if the network is considered off-line, your machines should not + * function. + * + * {@link MENetworkPowerStatusChange} events are posted when this value changes if you need to be notified of the + * change, most machines can simply test the value when they operate. + * + * @return if the network is powered or not. + */ + public boolean isNetworkPowered(); + + /** + * AE will accept any power, and store it, to maintain sanity please don't send more then 10,000 at a time. + * + * IMPORTANT: Network power knows no bounds, for less spamy power flow, networks can store more then their allotted + * storage, however, it should be kept to a minimum, to help with this, this method returns the networks current + * OVERFLOW, this is not energy you can store some where else, its already stored in the network, you can extract it + * if you want, however it it owned by the network, this is different then IAEEnergyStore + * + * Another important note, is that if a network that had overflow is deleted, its power is gone, this is one of the + * reasons why keeping overflow to a minimum is important. + * + * @param amt + * power to inject into the network + * @param mode + * should the action be simulated or performed? + * @return the amount of power that the network has OVER the limit. + */ + public double injectPower(double amt, Actionable mode); + + /** + * this is should be considered an estimate, and not relied upon for real calculations. + * + * @return estimated available power. + */ + public double getStoredPower(); + + /** + * this is should be considered an estimate, and not relied upon for real calculations. + * + * @return estimated available power. + */ + double getMaxStoredPower(); + + /** + * Calculation will be capped at maxRequired, this improves performance by limiting the number of nodes needed to + * calculate the demand. + * + * @return Amount of power required to charge the grid, in AE. + */ + public double getEnergyDemand(double maxRequired); + +} diff --git a/src/api/java/appeng/api/networking/energy/IEnergyGridProvider.java b/src/api/java/appeng/api/networking/energy/IEnergyGridProvider.java index a7412630..656ae7a4 100644 --- a/src/api/java/appeng/api/networking/energy/IEnergyGridProvider.java +++ b/src/api/java/appeng/api/networking/energy/IEnergyGridProvider.java @@ -1,28 +1,28 @@ -package appeng.api.networking.energy; - -import java.util.Set; - -import appeng.api.config.Actionable; - -/** - * internal use only. - */ -public interface IEnergyGridProvider -{ - - /** - * internal use only - */ - public double extractAEPower(double amt, Actionable mode, Set seen); - - /** - * internal use only - */ - public double injectAEPower(double amt, Actionable mode, Set seen); - - /** - * internal use only - */ - public double getEnergyDemand(double d, Set seen); - -} +package appeng.api.networking.energy; + +import java.util.Set; + +import appeng.api.config.Actionable; + +/** + * internal use only. + */ +public interface IEnergyGridProvider +{ + + /** + * internal use only + */ + public double extractAEPower(double amt, Actionable mode, Set seen); + + /** + * internal use only + */ + public double injectAEPower(double amt, Actionable mode, Set seen); + + /** + * internal use only + */ + public double getEnergyDemand(double d, Set seen); + +} diff --git a/src/api/java/appeng/api/networking/energy/IEnergySource.java b/src/api/java/appeng/api/networking/energy/IEnergySource.java index fa18d1e1..52a8c272 100644 --- a/src/api/java/appeng/api/networking/energy/IEnergySource.java +++ b/src/api/java/appeng/api/networking/energy/IEnergySource.java @@ -9,9 +9,8 @@ public interface IEnergySource /** * Extract power from the network. * - * @param amt - * @param mode - * should the action be simulated or performed? + * @param amt extracted power + * @param mode should the action be simulated or performed? * @return returns extracted power. */ public double extractAEPower(double amt, Actionable mode, PowerMultiplier usePowerMultiplier); diff --git a/src/api/java/appeng/api/networking/energy/IEnergyWatcherHost.java b/src/api/java/appeng/api/networking/energy/IEnergyWatcherHost.java index c844d73e..775380ca 100644 --- a/src/api/java/appeng/api/networking/energy/IEnergyWatcherHost.java +++ b/src/api/java/appeng/api/networking/energy/IEnergyWatcherHost.java @@ -7,15 +7,15 @@ public interface IEnergyWatcherHost * provides the IEnergyWatcher for this host, for the current network, is called when the hot changes networks. You * do not need to clear your old watcher, its already been removed by the time this gets called. * - * @param newWatcher + * @param newWatcher new watcher */ void updateWatcher(IEnergyWatcher newWatcher); /** * Called when a threshold is crossed. * - * @param energyGrid + * @param energyGrid grid */ - void onThreshholdPass(IEnergyGrid energyGrid); + void onThresholdPass(IEnergyGrid energyGrid); } diff --git a/src/api/java/appeng/api/networking/events/MENetworkCellArrayUpdate.java b/src/api/java/appeng/api/networking/events/MENetworkCellArrayUpdate.java index 1260216a..aec90e78 100644 --- a/src/api/java/appeng/api/networking/events/MENetworkCellArrayUpdate.java +++ b/src/api/java/appeng/api/networking/events/MENetworkCellArrayUpdate.java @@ -1,7 +1,7 @@ package appeng.api.networking.events; /** - * Posted by storage devices to inform AE to refreash its storage structure. + * Posted by storage devices to inform AE to refresh its storage structure. * * This is done in cases such as a storage cell being removed or added to a * drive. diff --git a/src/api/java/appeng/api/networking/events/MENetworkChannelChanged.java b/src/api/java/appeng/api/networking/events/MENetworkChannelChanged.java index 85409c52..bce30749 100644 --- a/src/api/java/appeng/api/networking/events/MENetworkChannelChanged.java +++ b/src/api/java/appeng/api/networking/events/MENetworkChannelChanged.java @@ -3,7 +3,7 @@ package appeng.api.networking.events; import appeng.api.networking.IGridNode; /** - * Posted by storage devices to inform AE he channel chache that the included node has changed its mind about its + * Posted by storage devices to inform AE the channel cache that the included node has changed its mind about its * channel requirements. */ public class MENetworkChannelChanged extends MENetworkEvent diff --git a/src/api/java/appeng/api/networking/events/MENetworkEvent.java b/src/api/java/appeng/api/networking/events/MENetworkEvent.java index 3fb2dd36..34a2731d 100644 --- a/src/api/java/appeng/api/networking/events/MENetworkEvent.java +++ b/src/api/java/appeng/api/networking/events/MENetworkEvent.java @@ -24,7 +24,7 @@ public class MENetworkEvent /** * called by AE after each object is called to cancel any future calls. * - * @return + * @return true to cancel future calls */ public boolean isCanceled() { @@ -34,7 +34,7 @@ public class MENetworkEvent /** * the number of objects that were visited by the event. * - * @return + * @return number of visitors */ public int getVisitedObjects() { @@ -44,7 +44,7 @@ public class MENetworkEvent /** * Called by AE after iterating the event subscribers. * - * @param v + * @param v current number of visitors */ public void setVisitedObjects(int v) { diff --git a/src/api/java/appeng/api/networking/events/MENetworkPostCacheConstruction.java b/src/api/java/appeng/api/networking/events/MENetworkPostCacheConstruction.java index 05b28128..68cdb74b 100644 --- a/src/api/java/appeng/api/networking/events/MENetworkPostCacheConstruction.java +++ b/src/api/java/appeng/api/networking/events/MENetworkPostCacheConstruction.java @@ -1,10 +1,10 @@ -package appeng.api.networking.events; - -/** - * Posted after all the caches are available, but before the grid is fully - * constructed, can be used to perform cross cache construction processes. - */ -public class MENetworkPostCacheConstruction extends MENetworkEvent -{ - -} +package appeng.api.networking.events; + +/** + * Posted after all the caches are available, but before the grid is fully + * constructed, can be used to perform cross cache construction processes. + */ +public class MENetworkPostCacheConstruction extends MENetworkEvent +{ + +} diff --git a/src/api/java/appeng/api/networking/events/MENetworkPowerIdleChange.java b/src/api/java/appeng/api/networking/events/MENetworkPowerIdleChange.java index 59366847..803c5a7e 100644 --- a/src/api/java/appeng/api/networking/events/MENetworkPowerIdleChange.java +++ b/src/api/java/appeng/api/networking/events/MENetworkPowerIdleChange.java @@ -3,7 +3,7 @@ package appeng.api.networking.events; import appeng.api.networking.IGridNode; /** - * Implementors of a IGridBlock must post this event when your getIdlePowerUsage + * Implementers of a IGridBlock must post this event when your getIdlePowerUsage * starts returning a new value, if you do not post this event the network will * not change the idle draw. * diff --git a/src/api/java/appeng/api/networking/events/MENetworkPowerStorage.java b/src/api/java/appeng/api/networking/events/MENetworkPowerStorage.java index cd907bce..34643450 100644 --- a/src/api/java/appeng/api/networking/events/MENetworkPowerStorage.java +++ b/src/api/java/appeng/api/networking/events/MENetworkPowerStorage.java @@ -25,7 +25,7 @@ public class MENetworkPowerStorage extends MENetworkEvent * informs the network this tile is ready to provide power again. */ PROVIDE_POWER - }; + } public final IAEPowerStorage storage; public final PowerEventType type; diff --git a/src/api/java/appeng/api/networking/events/MENetworkSpatialEvent.java b/src/api/java/appeng/api/networking/events/MENetworkSpatialEvent.java index 2ba0f7ba..ba487aee 100644 --- a/src/api/java/appeng/api/networking/events/MENetworkSpatialEvent.java +++ b/src/api/java/appeng/api/networking/events/MENetworkSpatialEvent.java @@ -3,24 +3,20 @@ package appeng.api.networking.events; import appeng.api.networking.IGridHost; /** - * An event that is posted Whenever a spatial IO is Actived, called for IGridCache - * - * @param IGridHost ( instance of the SpatialIO block ) - * @param double ( the amount of energy that the SpatialIO uses) + * An event that is posted whenever a spatial IO is actived, called for IGridCache */ - - public class MENetworkSpatialEvent extends MENetworkEvent { + public final IGridHost host; + public final double spatialEnergyUsage; - public final IGridHost host; - public final double spatialEnergyUsage; - - - public MENetworkSpatialEvent(IGridHost SpatialIO, double EnergyUsage) { - host = SpatialIO; - spatialEnergyUsage = EnergyUsage; - - } - + /** + * @param SpatialIO ( instance of the SpatialIO block ) + * @param EnergyUsage ( the amount of energy that the SpatialIO uses) + */ + public MENetworkSpatialEvent(IGridHost SpatialIO, double EnergyUsage) + { + host = SpatialIO; + spatialEnergyUsage = EnergyUsage; + } } diff --git a/src/api/java/appeng/api/networking/pathing/IPathingGrid.java b/src/api/java/appeng/api/networking/pathing/IPathingGrid.java index 90f30e04..97416f89 100644 --- a/src/api/java/appeng/api/networking/pathing/IPathingGrid.java +++ b/src/api/java/appeng/api/networking/pathing/IPathingGrid.java @@ -1,24 +1,24 @@ -package appeng.api.networking.pathing; - -import appeng.api.networking.IGridCache; - -public interface IPathingGrid extends IGridCache -{ - - /** - * @return true if the network is in its booting stage - */ - boolean isNetworkBooting(); - - /** - * @return the controller state of the network, useful if you want to - * require a controller for a feature. - */ - ControllerState getControllerState(); - - /** - * trigger a network reset, booting, pathfinding and all. - */ - void repath(); - +package appeng.api.networking.pathing; + +import appeng.api.networking.IGridCache; + +public interface IPathingGrid extends IGridCache +{ + + /** + * @return true if the network is in its booting stage + */ + boolean isNetworkBooting(); + + /** + * @return the controller state of the network, useful if you want to + * require a controller for a feature. + */ + ControllerState getControllerState(); + + /** + * trigger a network reset, booting, pathfinding and all. + */ + void repath(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/networking/security/ISecurityGrid.java b/src/api/java/appeng/api/networking/security/ISecurityGrid.java index 6fb1d85d..aed72a7c 100644 --- a/src/api/java/appeng/api/networking/security/ISecurityGrid.java +++ b/src/api/java/appeng/api/networking/security/ISecurityGrid.java @@ -15,8 +15,8 @@ public interface ISecurityGrid extends IGridCache /** * Check if a player has permissions. * - * @param player - * @param perm + * @param player to be checked player + * @param perm checked permissions * * @return true if the player has permissions. */ @@ -25,8 +25,8 @@ public interface ISecurityGrid extends IGridCache /** * Check if a player has permissions. * - * @param player - * @param perm + * @param playerID id of player + * @param perm checked permissions * * @return true if the player has permissions. */ diff --git a/src/api/java/appeng/api/networking/security/ISecurityProvider.java b/src/api/java/appeng/api/networking/security/ISecurityProvider.java index 6db5f34f..be9ad4a8 100644 --- a/src/api/java/appeng/api/networking/security/ISecurityProvider.java +++ b/src/api/java/appeng/api/networking/security/ISecurityProvider.java @@ -1,10 +1,10 @@ package appeng.api.networking.security; +import appeng.api.config.SecurityPermissions; + import java.util.EnumSet; import java.util.HashMap; -import appeng.api.config.SecurityPermissions; - /** * Implemented on Security Terminal to interface with security cache. */ @@ -21,7 +21,7 @@ public interface ISecurityProvider /** * Push permission data into security cache. * - * @param playerPerms + * @param playerPerms player permissions */ void readPermissions(HashMap> playerPerms); diff --git a/src/api/java/appeng/api/networking/security/ISecurityRegister.java b/src/api/java/appeng/api/networking/security/ISecurityRegistry.java similarity index 75% rename from src/api/java/appeng/api/networking/security/ISecurityRegister.java rename to src/api/java/appeng/api/networking/security/ISecurityRegistry.java index 1f1ef358..b1abf80c 100644 --- a/src/api/java/appeng/api/networking/security/ISecurityRegister.java +++ b/src/api/java/appeng/api/networking/security/ISecurityRegistry.java @@ -1,20 +1,20 @@ package appeng.api.networking.security; -import java.util.EnumSet; - import appeng.api.config.SecurityPermissions; +import java.util.EnumSet; + /** * Used by vanilla Security Terminal to post biometric data into the security cache. */ -public interface ISecurityRegister +public interface ISecurityRegistry { /** * Submit Permissions into the register. * - * @param PlayerID - * @param permissions + * @param PlayerID player id + * @param permissions permissions of player */ void addPlayer(int PlayerID, EnumSet permissions); diff --git a/src/api/java/appeng/api/networking/spatial/ISpatialCache.java b/src/api/java/appeng/api/networking/spatial/ISpatialCache.java index 3a97868b..2921553f 100644 --- a/src/api/java/appeng/api/networking/spatial/ISpatialCache.java +++ b/src/api/java/appeng/api/networking/spatial/ISpatialCache.java @@ -7,7 +7,7 @@ public interface ISpatialCache extends IGridCache { /** - * @return true if a region is defined at all, it dosn't have to be valid, but all points must be in the same world. + * @return true if a region is defined at all, it doesn't have to be valid, but all points must be in the same world. */ boolean hasRegion(); @@ -32,8 +32,8 @@ public interface ISpatialCache extends IGridCache long requiredPower(); /** - * @return current 100% - 0% effiency. + * @return current 100% - 0% efficiency. */ - float currentEffiency(); + float currentEfficiency(); } diff --git a/src/api/java/appeng/api/networking/storage/IStackWatcherHost.java b/src/api/java/appeng/api/networking/storage/IStackWatcherHost.java index f94ef3c9..62b2541f 100644 --- a/src/api/java/appeng/api/networking/storage/IStackWatcherHost.java +++ b/src/api/java/appeng/api/networking/storage/IStackWatcherHost.java @@ -12,18 +12,18 @@ public interface IStackWatcherHost * provides the IStackWatcher for this host, for the current network, is called when the hot changes networks. You * do not need to clear your old watcher, its already been removed by the time this gets called. * - * @param newWatcher + * @param newWatcher stack watcher */ void updateWatcher(IStackWatcher newWatcher); /** * Called when a watched item changes amounts. * - * @param o - * @param fullStack - * @param diffStack - * @param src - * @param chan + * @param o changed item list + * @param fullStack old stack + * @param diffStack new stack + * @param src action source + * @param chan storage channel */ void onStackChange(IItemList o, IAEStack fullStack, IAEStack diffStack, BaseActionSource src, StorageChannel chan); diff --git a/src/api/java/appeng/api/networking/storage/IStorageGrid.java b/src/api/java/appeng/api/networking/storage/IStorageGrid.java index 76405d5c..5a7291a2 100644 --- a/src/api/java/appeng/api/networking/storage/IStorageGrid.java +++ b/src/api/java/appeng/api/networking/storage/IStorageGrid.java @@ -1,45 +1,45 @@ -package appeng.api.networking.storage; - -import appeng.api.networking.IGridCache; -import appeng.api.networking.IGridHost; -import appeng.api.networking.security.BaseActionSource; -import appeng.api.storage.ICellContainer; -import appeng.api.storage.ICellProvider; -import appeng.api.storage.IStorageMonitorable; -import appeng.api.storage.StorageChannel; -import appeng.api.storage.data.IAEStack; - -/** - * Common base class for item / fluid storage caches. - */ -public interface IStorageGrid extends IGridCache, IStorageMonitorable -{ - - /** - * Used to inform the network of alterations to the storage system that fall outside of the standard Network - * operations, Examples, ME Chest inputs from the world, or a Storage Bus detecting modifications made to the chest - * by an outside force. - * - * Expects the input to have either a negative or a positive stack size to correspond to the injection, or - * extraction operation. - * - * @param input - */ - void postAlterationOfStoredItems(StorageChannel chan, Iterable input, BaseActionSource src); - - /** - * Used to add a cell provider to the storage system - * - * THIS IT NOT FOR USE {@link IGridHost} THAT PROVIDE {@link ICellContainer} - those are automatically handled by - * the storage system. - * - * @param cc - */ - void registerCellProvider(ICellProvider cc); - - /** - * remove a provider added with addCellContainer - */ - void unregisterCellProvider(ICellProvider cc); - -} +package appeng.api.networking.storage; + +import appeng.api.networking.IGridCache; +import appeng.api.networking.IGridHost; +import appeng.api.networking.security.BaseActionSource; +import appeng.api.storage.ICellContainer; +import appeng.api.storage.ICellProvider; +import appeng.api.storage.IStorageMonitorable; +import appeng.api.storage.StorageChannel; +import appeng.api.storage.data.IAEStack; + +/** + * Common base class for item / fluid storage caches. + */ +public interface IStorageGrid extends IGridCache, IStorageMonitorable +{ + + /** + * Used to inform the network of alterations to the storage system that fall outside of the standard Network + * operations, Examples, ME Chest inputs from the world, or a Storage Bus detecting modifications made to the chest + * by an outside force. + * + * Expects the input to have either a negative or a positive stack size to correspond to the injection, or + * extraction operation. + * + * @param input injected items + */ + void postAlterationOfStoredItems(StorageChannel chan, Iterable input, BaseActionSource src); + + /** + * Used to add a cell provider to the storage system + * + * THIS IT NOT FOR USE {@link IGridHost} THAT PROVIDE {@link ICellContainer} - those are automatically handled by + * the storage system. + * + * @param cc to be added cell provider + */ + void registerCellProvider(ICellProvider cc); + + /** + * remove a provider added with addCellContainer + */ + void unregisterCellProvider(ICellProvider cc); + +} diff --git a/src/api/java/appeng/api/networking/ticking/IGridTickable.java b/src/api/java/appeng/api/networking/ticking/IGridTickable.java index 66d3c898..ea5c36ef 100644 --- a/src/api/java/appeng/api/networking/ticking/IGridTickable.java +++ b/src/api/java/appeng/api/networking/ticking/IGridTickable.java @@ -1,56 +1,56 @@ -package appeng.api.networking.ticking; - -import appeng.api.networking.IGridNode; - -/** - * Implement on IGridHosts which want to use AE's Network Ticking Feature. - */ -public interface IGridTickable -{ - - /** - * Important note regarding IGridTickables with more then one one node, - * - * If your IGridHost hosts multiple nodes, it may be on multiple grids, or - * its node may be present on the same grid multiple times, this is as - * designed, however if you choose to use the grid to tick these Hosts you - * must be aware that they they should probably pick a single node to tick - * for, and not tick for each node. - * - */ - - /** - * You can return null, if you wish to tick using MC's ticking mechanism, or - * you can return a valid TickingRequest to tell AE a guide for which type - * of responsiveness your device wants. - * - * this will be called for your tile any time your tile changes grids, this - * can happen at any time, so if your using the sleep feature you may wish - * to preserve your sleep, in the result of this method. or you can simply - * reset it. - * - * @return null or a valid new TickingRequest - * - */ - TickingRequest getTickingRequest(IGridNode node); - - /** - * AE lets you adjust your tick rate based on the results of your tick, if - * your block as accomplished work you may wish to increase the ticking - * speed, if your block is idle you may wish to slow it down. - * - * Its up to you. - * - * Note: this is never called if you return null from getTickingRequest. - * - * @param TicksSinceLastCall - * the number of world ticks that were skipped since your last - * tick, you can use this to adjust speed of processing or adjust - * your tick rate. - * - * @return tick rate adjustment. - * - */ - TickRateModulation tickingRequest(IGridNode node, int TicksSinceLastCall); - -} +package appeng.api.networking.ticking; + +import appeng.api.networking.IGridNode; + +/** + * Implement on IGridHosts which want to use AE's Network Ticking Feature. + */ +public interface IGridTickable +{ + + /** + * Important note regarding IGridTickables with more then one one node, + * + * If your IGridHost hosts multiple nodes, it may be on multiple grids, or + * its node may be present on the same grid multiple times, this is as + * designed, however if you choose to use the grid to tick these Hosts you + * must be aware that they they should probably pick a single node to tick + * for, and not tick for each node. + * + */ + + /** + * You can return null, if you wish to tick using MC's ticking mechanism, or + * you can return a valid TickingRequest to tell AE a guide for which type + * of responsiveness your device wants. + * + * this will be called for your tile any time your tile changes grids, this + * can happen at any time, so if your using the sleep feature you may wish + * to preserve your sleep, in the result of this method. or you can simply + * reset it. + * + * @return null or a valid new TickingRequest + * + */ + TickingRequest getTickingRequest(IGridNode node); + + /** + * AE lets you adjust your tick rate based on the results of your tick, if + * your block as accomplished work you may wish to increase the ticking + * speed, if your block is idle you may wish to slow it down. + * + * Its up to you. + * + * Note: this is never called if you return null from getTickingRequest. + * + * @param TicksSinceLastCall + * the number of world ticks that were skipped since your last + * tick, you can use this to adjust speed of processing or adjust + * your tick rate. + * + * @return tick rate adjustment. + * + */ + TickRateModulation tickingRequest(IGridNode node, int TicksSinceLastCall); + +} diff --git a/src/api/java/appeng/api/networking/ticking/ITickManager.java b/src/api/java/appeng/api/networking/ticking/ITickManager.java index aa7c0325..3f423437 100644 --- a/src/api/java/appeng/api/networking/ticking/ITickManager.java +++ b/src/api/java/appeng/api/networking/ticking/ITickManager.java @@ -1,44 +1,44 @@ -package appeng.api.networking.ticking; - -import appeng.api.networking.IGridCache; -import appeng.api.networking.IGridNode; - -/** - * - * The network tick manager. - * - */ -public interface ITickManager extends IGridCache -{ - - /** - * immediately sets the node to tick, only valid if your node is marked as "Alertable" in its TickingRequest - * - * Sleeping Devices Still Alertable, when your tile is alerted its new status is determined by the result of its - * tick. - * - * @param node - */ - boolean alertDevice(IGridNode node); - - /** - * - * disables ticking for your device. - * - * @param node - * - * @return if the call was successful. - */ - boolean sleepDevice(IGridNode node); - - /** - * - * enables ticking for your device, undoes a sleepDevice call. - * - * @param node - * - * @return if the call was successful. - */ - boolean wakeDevice(IGridNode node); - -} +package appeng.api.networking.ticking; + +import appeng.api.networking.IGridCache; +import appeng.api.networking.IGridNode; + +/** + * + * The network tick manager. + * + */ +public interface ITickManager extends IGridCache +{ + + /** + * immediately sets the node to tick, only valid if your node is marked as "Alertable" in its TickingRequest + * + * Sleeping Devices Still Alertable, when your tile is alerted its new status is determined by the result of its + * tick. + * + * @param node gridnode + */ + boolean alertDevice(IGridNode node); + + /** + * + * disables ticking for your device. + * + * @param node gridnode + * + * @return if the call was successful. + */ + boolean sleepDevice(IGridNode node); + + /** + * + * enables ticking for your device, undoes a sleepDevice call. + * + * @param node gridnode + * + * @return if the call was successful. + */ + boolean wakeDevice(IGridNode node); + +} diff --git a/src/api/java/appeng/api/networking/ticking/TickRateModulation.java b/src/api/java/appeng/api/networking/ticking/TickRateModulation.java index 1298b5ab..e5a4e75b 100644 --- a/src/api/java/appeng/api/networking/ticking/TickRateModulation.java +++ b/src/api/java/appeng/api/networking/ticking/TickRateModulation.java @@ -1,34 +1,34 @@ -package appeng.api.networking.ticking; - -public enum TickRateModulation -{ - /** - * same as idle, but also puts the node to sleep. - */ - SLEEP, - - /** - * set tick rate to maximum. - */ - IDLE, - - /** - * decrease the tick rate marginally. - */ - SLOWER, - - /** - * continue at current rate. - */ - SAME, - - /** - * increase the tick rate marginally. - */ - FASTER, - - /** - * changes the tick rate to the minimum tick rate. - */ - URGENT -} +package appeng.api.networking.ticking; + +public enum TickRateModulation +{ + /** + * same as idle, but also puts the node to sleep. + */ + SLEEP, + + /** + * set tick rate to maximum. + */ + IDLE, + + /** + * decrease the tick rate marginally. + */ + SLOWER, + + /** + * continue at current rate. + */ + SAME, + + /** + * increase the tick rate marginally. + */ + FASTER, + + /** + * changes the tick rate to the minimum tick rate. + */ + URGENT +} diff --git a/src/api/java/appeng/api/networking/ticking/TickingRequest.java b/src/api/java/appeng/api/networking/ticking/TickingRequest.java index 02ac54e6..570d9f7d 100644 --- a/src/api/java/appeng/api/networking/ticking/TickingRequest.java +++ b/src/api/java/appeng/api/networking/ticking/TickingRequest.java @@ -1,54 +1,54 @@ -package appeng.api.networking.ticking; - -/** - * - * Describes how your tiles ticking is executed. - * - */ -public class TickingRequest -{ - - /** - * the minimum number of ticks that must pass between ticks. - * - * Valid Values are : 1+ - * - * Suggested is 5-20 - * - */ - public final int minTickRate; - - /** - * the maximum number of ticks that can pass between ticks, if this value is - * exceeded the tile must tick. - * - * Valid Values are 1+ - * - * Suggested is 20-40 - * - */ - public final int maxTickRate; - - /** - * - * Determines the current expected state of your node, if your node expects - * to be sleeping, then return true. - * - */ - public final boolean isSleeping; - - /** - * - * True only if you call {@link ITickManager}.alertDevice( IGridNode ); - * - */ - public final boolean canBeAlerted; - - public TickingRequest(int min, int max, boolean sleep, boolean alertable) { - minTickRate = min; - maxTickRate = max; - isSleeping = sleep; - canBeAlerted = alertable; - } - -} +package appeng.api.networking.ticking; + +/** + * + * Describes how your tiles ticking is executed. + * + */ +public class TickingRequest +{ + + /** + * the minimum number of ticks that must pass between ticks. + * + * Valid Values are : 1+ + * + * Suggested is 5-20 + * + */ + public final int minTickRate; + + /** + * the maximum number of ticks that can pass between ticks, if this value is + * exceeded the tile must tick. + * + * Valid Values are 1+ + * + * Suggested is 20-40 + * + */ + public final int maxTickRate; + + /** + * + * Determines the current expected state of your node, if your node expects + * to be sleeping, then return true. + * + */ + public final boolean isSleeping; + + /** + * + * True only if you call {@link ITickManager}.alertDevice( IGridNode ); + * + */ + public final boolean canBeAlerted; + + public TickingRequest(int min, int max, boolean sleep, boolean alertable) { + minTickRate = min; + maxTickRate = max; + isSleeping = sleep; + canBeAlerted = alertable; + } + +} diff --git a/src/api/java/appeng/api/package-info.java b/src/api/java/appeng/api/package-info.java index 4d7c0f18..c7171c43 100644 --- a/src/api/java/appeng/api/package-info.java +++ b/src/api/java/appeng/api/package-info.java @@ -1,5 +1,5 @@ -@API(apiVersion = "rv1", owner = "appliedenergistics2", provides = "appliedenergistics2|API") -package appeng.api; - -import cpw.mods.fml.common.API; - +@API(apiVersion = "rv2", owner = "appliedenergistics2", provides = "appliedenergistics2|API") +package appeng.api; + +import cpw.mods.fml.common.API; + diff --git a/src/api/java/appeng/api/parts/BusSupport.java b/src/api/java/appeng/api/parts/BusSupport.java index 1702bbce..b8b6e90e 100644 --- a/src/api/java/appeng/api/parts/BusSupport.java +++ b/src/api/java/appeng/api/parts/BusSupport.java @@ -1,10 +1,10 @@ -package appeng.api.parts; - -public enum BusSupport -{ - CABLE, - - DENSE_CABLE, - - NO_PARTS -} +package appeng.api.parts; + +public enum BusSupport +{ + CABLE, + + DENSE_CABLE, + + NO_PARTS +} diff --git a/src/api/java/appeng/api/parts/IAlphaPassItem.java b/src/api/java/appeng/api/parts/IAlphaPassItem.java index 106b86aa..b2dba861 100644 --- a/src/api/java/appeng/api/parts/IAlphaPassItem.java +++ b/src/api/java/appeng/api/parts/IAlphaPassItem.java @@ -8,8 +8,8 @@ public interface IAlphaPassItem /** * Extend, and return true to enable a second pass for your parts in the bus rendering pipe line. * - * @param is - * @return + * @param is item + * @return true to enable a second pass for your parts in the bus rendering pipe line. */ boolean useAlphaPass(ItemStack is); diff --git a/src/api/java/appeng/api/parts/IBoxProvider.java b/src/api/java/appeng/api/parts/IBoxProvider.java index 639d293c..653089a9 100644 --- a/src/api/java/appeng/api/parts/IBoxProvider.java +++ b/src/api/java/appeng/api/parts/IBoxProvider.java @@ -6,8 +6,8 @@ public interface IBoxProvider /** * add your collision information to the the list. * - * @param boxes + * @param boxes collision boxes */ - void getBoxes(IPartCollsionHelper bch); + void getBoxes(IPartCollisionHelper boxes); } diff --git a/src/api/java/appeng/api/parts/IFacadeContainer.java b/src/api/java/appeng/api/parts/IFacadeContainer.java index 5bcba344..1400725d 100644 --- a/src/api/java/appeng/api/parts/IFacadeContainer.java +++ b/src/api/java/appeng/api/parts/IFacadeContainer.java @@ -1,30 +1,75 @@ -package appeng.api.parts; - -import net.minecraftforge.common.util.ForgeDirection; - -/** - * Used Internally. - * - * not intended for implementation. - */ -public interface IFacadeContainer -{ - - /** - * Attempts to add the {@link IFacadePart} to the given side. - * - * @return true if the facade as successfully added. - */ - boolean addFacade(IFacadePart a); - - /** - * Removed the facade on the given side, or does nothing. - */ - void removeFacade(IPartHost host, ForgeDirection side); - - /** - * @return the {@link IFacadePart} for a given side, or null. - */ - IFacadePart getFacade(ForgeDirection s); - -} +package appeng.api.parts; + +import io.netty.buffer.ByteBuf; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraftforge.common.util.ForgeDirection; + +import java.io.IOException; + +/** + * Used Internally. + * + * not intended for implementation. + */ +public interface IFacadeContainer +{ + + /** + * Attempts to add the {@link IFacadePart} to the given side. + * + * @return true if the facade as successfully added. + */ + boolean addFacade(IFacadePart a); + + /** + * Removed the facade on the given side, or does nothing. + */ + void removeFacade(IPartHost host, ForgeDirection side); + + /** + * @return the {@link IFacadePart} for a given side, or null. + */ + IFacadePart getFacade(ForgeDirection s); + + /** + * rotate the facades left. + */ + void rotateLeft(); + + /** + * write nbt data + * + * @param data to be written data + */ + void writeToNBT(NBTTagCompound data); + + /** + * read from stream + * + * @param data to be read data + * @return true if it was readable + * @throws IOException + */ + boolean readFromStream(ByteBuf data) throws IOException; + + /** + * read from NBT + * + * @param data to be read data + */ + void readFromNBT(NBTTagCompound data); + + /** + * write to stream + * + * @param data to be written data + * @throws IOException + */ + void writeToStream(ByteBuf data) throws IOException; + + /** + * @return true if there are no facades. + */ + boolean isEmpty(); + +} diff --git a/src/api/java/appeng/api/parts/IFacadePart.java b/src/api/java/appeng/api/parts/IFacadePart.java index 49565353..c0e08f3f 100644 --- a/src/api/java/appeng/api/parts/IFacadePart.java +++ b/src/api/java/appeng/api/parts/IFacadePart.java @@ -1,76 +1,77 @@ -package appeng.api.parts; - -import net.minecraft.client.renderer.RenderBlocks; -import net.minecraft.entity.Entity; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.util.AxisAlignedBB; -import net.minecraftforge.common.util.ForgeDirection; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -/** - * Used Internally. - * - * not intended for implementation. - */ -public interface IFacadePart -{ - - /** - * used to save the part. - */ - ItemStack getItemStack(); - - /** - * used to collide, and pick the part - * - * @param ch - * @param e - */ - void getBoxes(IPartCollsionHelper ch, Entity e); - - /** - * render the part. - * - * @param xCoord - * @param yCoord - * @param zCoord - * @param instance - * @param renderer - * @param busBounds - * @param b - */ - @SideOnly(Side.CLIENT) - void renderStatic(int x, int y, int z, IPartRenderHelper instance, RenderBlocks renderer, IFacadeContainer fc, AxisAlignedBB busBounds, boolean renderStilt); - - /** - * render the part in inventory. - * - * @param instance - * @param renderer - */ - @SideOnly(Side.CLIENT) - void renderInventory(IPartRenderHelper instance, RenderBlocks renderer); - - /** - * @return side the facade is in - */ - ForgeDirection getSide(); - - /** - * @return the box for the face of the facade - */ - AxisAlignedBB getPrimaryBox(); - - Item getItem(); - - int getItemDamage(); - - boolean isBC(); - - void setThinFacades(boolean useThinFacades); - - boolean isTransparent(); - +package appeng.api.parts; + +import net.minecraft.client.renderer.RenderBlocks; +import net.minecraft.entity.Entity; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.util.AxisAlignedBB; +import net.minecraftforge.common.util.ForgeDirection; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + +/** + * Used Internally. + * + * not intended for implementation. + */ +public interface IFacadePart +{ + + /** + * used to save the part. + */ + ItemStack getItemStack(); + + /** + * used to collide, and pick the part + * + * @param ch collision helper + * @param e colliding entity + */ + void getBoxes(IPartCollisionHelper ch, Entity e); + + /** + * render the part. + * + * @param x x pos of part + * @param y y pos of part + * @param z z pos of part + * @param instance render helper + * @param renderer renderer + * @param fc face container + * @param busBounds bounding box + * @param renderStilt if to render stilt + */ + @SideOnly(Side.CLIENT) + void renderStatic(int x, int y, int z, IPartRenderHelper instance, RenderBlocks renderer, IFacadeContainer fc, AxisAlignedBB busBounds, boolean renderStilt); + + /** + * render the part in inventory. + * + * @param instance render helper + * @param renderer renderer + */ + @SideOnly(Side.CLIENT) + void renderInventory(IPartRenderHelper instance, RenderBlocks renderer); + + /** + * @return side the facade is in + */ + ForgeDirection getSide(); + + /** + * @return the box for the face of the facade + */ + AxisAlignedBB getPrimaryBox(); + + Item getItem(); + + int getItemDamage(); + + boolean isBC(); + + void setThinFacades(boolean useThinFacades); + + boolean isTransparent(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/parts/IPart.java b/src/api/java/appeng/api/parts/IPart.java index 09227f7b..fdc4e0da 100644 --- a/src/api/java/appeng/api/parts/IPart.java +++ b/src/api/java/appeng/api/parts/IPart.java @@ -1,11 +1,9 @@ package appeng.api.parts; +import appeng.api.networking.IGridNode; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import io.netty.buffer.ByteBuf; - -import java.io.IOException; -import java.util.List; -import java.util.Random; - import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; @@ -17,9 +15,10 @@ import net.minecraft.util.IIcon; import net.minecraft.util.Vec3; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.networking.IGridNode; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.io.IOException; +import java.util.List; +import java.util.Random; public interface IPart extends IBoxProvider { @@ -27,66 +26,66 @@ public interface IPart extends IBoxProvider /** * get an ItemStack that represents the bus, should contain the settings for whatever, can also be used in * conjunction with removePart to take a part off and drop it or something. - * + * * This is used to drop the bus, and to save the bus, when saving the bus, wrenched is false, and writeToNBT will be - * called to save improtant details about the part, if the part is wrenched include in your NBT Data any settings + * called to save important details about the part, if the part is wrenched include in your NBT Data any settings * you might want to keep around, you can restore those settings when constructing your part. - * - * @param type - * , what kind of ItemStack to return? - * @return + * + * @param type , what kind of ItemStack to return? + * + * @return item of part */ ItemStack getItemStack(PartItemStack type); /** * render item form for inventory, or entity. - * + * * GL Available - * - * @param te - * @param rh + * + * @param rh helper + * @param renderer renderer */ @SideOnly(Side.CLIENT) void renderInventory(IPartRenderHelper rh, RenderBlocks renderer); /** * render world renderer ( preferred ) - * + * * GL is NOT Available - * - * @param x - * @param y - * @param z - * @param te - * @param rh + * + * @param x x coord + * @param y y coord + * @param z z coord + * @param rh helper + * @param renderer renderer */ @SideOnly(Side.CLIENT) void renderStatic(int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer); /** * render TESR. - * + * * GL Available - * - * @param x - * @param y - * @param z - * @param te - * @param rh + * + * @param x x coord + * @param y y coord + * @param z z coord + * @param rh helper + * @param renderer renderer */ @SideOnly(Side.CLIENT) void renderDynamic(double x, double y, double z, IPartRenderHelper rh, RenderBlocks renderer); /** * @return the Block sheet icon used when rendering the breaking particles, return null to use the ItemStack - * texture. + * texture. */ @SideOnly(Side.CLIENT) IIcon getBreakingTexture(); /** * return true only if your part require dynamic rendering, must be consistent. - * + * * @return true to enable renderDynamic */ boolean requireDynamicRender(); @@ -104,15 +103,15 @@ public interface IPart extends IBoxProvider /** * Write the part information for saving, the part will be saved with getItemStack(false) and this method will be * called after to load settings, inventory or other values from the world. - * - * @param data + * + * @param data to be written nbt data */ void writeToNBT(NBTTagCompound data); /** * Read the previously written NBT Data. this is the mirror for writeToNBT - * - * @param data + * + * @param data to be read nbt data */ void readFromNBT(NBTTagCompound data); @@ -123,9 +122,10 @@ public interface IPart extends IBoxProvider /** * does this part act like a ladder? - * - * @param entity - * @return + * + * @param entity climbing entity + * + * @return true if entity can climb */ boolean isLadder(EntityLivingBase entity); @@ -146,35 +146,38 @@ public interface IPart extends IBoxProvider /** * write data to bus packet. - * - * @param data + * + * @param data to be written data + * * @throws IOException */ void writeToStream(ByteBuf data) throws IOException; /** * read data from bus packet. - * - * @param data + * + * @param data to be read data + * * @return true will re-draw the part. + * * @throws IOException */ boolean readFromStream(ByteBuf data) throws IOException; /** - * get the Grid Node for the Bus, be sure your IGridBlock is NOT isWorldAccessable, if it is your going to cause + * get the Grid Node for the Bus, be sure your IGridBlock is NOT isWorldAccessible, if it is your going to cause * crashes. - * + * * or null if you don't have a grid node. - * - * @return + * + * @return grid node */ IGridNode getGridNode(); /** * called when an entity collides with the bus. - * - * @param entity + * + * @param entity colliding entity */ void onEntityCollision(Entity entity); @@ -190,34 +193,36 @@ public interface IPart extends IBoxProvider /** * used for tunnels. - * - * @return a grid node that represents the external facing side, these must be isWorldAccessable with the correct - * faces marked as external + * + * @return a grid node that represents the external facing side, these must be isWorldAccessible with the correct + * faces marked as external */ IGridNode getExternalFacingNode(); /** * called by the Part host to keep your part informed. - * - * @param host - * @param tile + * + * @param host part side + * @param tile tile entity of part */ void setPartHostInfo(ForgeDirection side, IPartHost host, TileEntity tile); /** * Called when you right click the part, very similar to Block.onActivateBlock - * - * @param player - * @param pos + * + * @param player right clicking player + * @param pos position of block + * * @return if your activate method performed something. */ boolean onActivate(EntityPlayer player, Vec3 pos); /** * Called when you right click the part, very similar to Block.onActivateBlock - * - * @param player - * @param pos + * + * @param player shift right clicking player + * @param pos position of block + * * @return if your activate method performed something, you should use false unless you really need it. */ boolean onShiftActivate(EntityPlayer player, Vec3 pos); @@ -225,9 +230,9 @@ public interface IPart extends IBoxProvider /** * Add drops to the items being dropped into the world, if your item stores its contents when wrenched use the * wrenched boolean to control what data is saved vs dropped when it is broken. - * - * @param drops - * @param wrenched + * + * @param drops item drops if wrenched + * @param wrenched control flag for wrenched vs broken */ void getDrops(List drops, boolean wrenched); @@ -238,28 +243,29 @@ public interface IPart extends IBoxProvider /** * same as Block.randomDisplayTick, for but parts. - * - * @param world - * @param x - * @param y - * @param z - * @param r + * + * @param world world of block + * @param x x coord of block + * @param y y coord of block + * @param z z coord of block + * @param r random */ void randomDisplayTick(World world, int x, int y, int z, Random r); /** * Called when placed in the world by a player, this happens before addWorld. - * - * @param player - * @param held - * @param side + * + * @param player placing player + * @param held held item + * @param side placing side */ void onPlacement(EntityPlayer player, ItemStack held, ForgeDirection side); /** * Used to determine which parts can be placed on what cables. - * - * @param what + * + * @param what placed part + * * @return true if the part can be placed on this support. */ boolean canBePlacedOn(BusSupport what); diff --git a/src/api/java/appeng/api/parts/IPartCollsionHelper.java b/src/api/java/appeng/api/parts/IPartCollisionHelper.java similarity index 71% rename from src/api/java/appeng/api/parts/IPartCollsionHelper.java rename to src/api/java/appeng/api/parts/IPartCollisionHelper.java index 7aa4346b..c7fcb9a6 100644 --- a/src/api/java/appeng/api/parts/IPartCollsionHelper.java +++ b/src/api/java/appeng/api/parts/IPartCollisionHelper.java @@ -2,7 +2,7 @@ package appeng.api.parts; import net.minecraftforge.common.util.ForgeDirection; -public interface IPartCollsionHelper +public interface IPartCollisionHelper { /** @@ -10,12 +10,12 @@ public interface IPartCollsionHelper * * No complaints about the size, I like using pixels :P * - * @param minX - * @param minY - * @param minZ - * @param maxX - * @param maxY - * @param maxZ + * @param minX minimal x collision + * @param minY minimal y collision + * @param minZ minimal z collision + * @param maxX maximal x collision + * @param maxY maximal y collision + * @param maxZ maximal z collision */ void addBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ); diff --git a/src/api/java/appeng/api/parts/IPartHelper.java b/src/api/java/appeng/api/parts/IPartHelper.java index d13acf39..7cf451ed 100644 --- a/src/api/java/appeng/api/parts/IPartHelper.java +++ b/src/api/java/appeng/api/parts/IPartHelper.java @@ -43,15 +43,14 @@ public interface IPartHelper /** * use in use item, to try and place a IBusItem * - * @param is - * ItemStack of an item which implements {@link IPartItem} - * @param x - * @param y - * @param z - * @param side - * @param player - * @param world - * @return + * @param is ItemStack of an item which implements {@link IPartItem} + * @param x x pos of part + * @param y y pos of part + * @param z z pos of part + * @param side side which the part should be on + * @param player player placing part + * @param world part in world + * @return true if placing was successful */ boolean placeBus(ItemStack is, int x, int y, int z, int side, EntityPlayer player, World world); diff --git a/src/api/java/appeng/api/parts/IPartHost.java b/src/api/java/appeng/api/parts/IPartHost.java index 697dcbb7..8b757b6d 100644 --- a/src/api/java/appeng/api/parts/IPartHost.java +++ b/src/api/java/appeng/api/parts/IPartHost.java @@ -1,152 +1,152 @@ -package appeng.api.parts; - -import java.util.Set; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.Vec3; -import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.util.AEColor; -import appeng.api.util.DimensionalCoord; - -/** - * Implemented on AE's TileEntity or AE's FMP Part. - * - * Do Not Implement - */ -public interface IPartHost -{ - - /** - * @return the facade container - */ - IFacadeContainer getFacadeContainer(); - - /** - * Test if you can add a part to the specified side of the Part Host, {@link ForgeDirection}.UNKNOWN is used to - * represent the cable in the middle. - * - * @param is - * @param side - * @return returns false if the part cannot be added. - */ - boolean canAddPart(ItemStack part, ForgeDirection side); - - /** - * try to add a new part to the specified side, returns false if it failed to be added. - * - * @param is - * @param side - * @param owner - * @return null if the item failed to add, the side it was placed on other wise ( may different for cables, - * {@link ForgeDirection}.UNKNOWN ) - */ - ForgeDirection addPart(ItemStack is, ForgeDirection side, EntityPlayer owner); - - /** - * Get part by side ( center is {@link ForgeDirection}.UNKNOWN ) - * - * @param side - * @return the part located on the specified side, or null if there is no part. - */ - IPart getPart(ForgeDirection side); - - /** - * removes the part on the side, this doesn't drop it or anything, if you don't do something with it, its just - * "gone" and its never coming back; think about it. - * - * if you want to drop the part you must request it prior to removing it. - * - * @param side - * @param suppressUpdate - * - used if you need to replace a part's instance, without really removing it first. - */ - void removePart(ForgeDirection side, boolean suppressUpdate); - - /** - * something changed, might want to send a packet to clients to update state. - */ - void markForUpdate(); - - /** - * @return the physical location of the part host in the universe. - */ - DimensionalCoord getLocation(); - - /** - * @return the tile entity for the host, this can either be an FMP tile, or a AE tile - */ - TileEntity getTile(); - - /** - * @return the color of the host type ( this is determined by the middle cable. ) if no cable is present, it returns - * {@link AEColor} .Transparent other wise it returns the color of the cable in the center. - */ - AEColor getColor(); - - /** - * destroys the part container, for internal use. - */ - void clearContainer(); - - /** - * Used to test for FMP microblock blocking internally. - * - * @return returns if microblocks are blocking this cable path. - */ - boolean isBlocked(ForgeDirection side); - - /** - * finds the part located at the position ( pos must be relative, not global ) - * - * @param pos - * @return a new SelectedPart, this is never null. - */ - SelectedPart selectPart(Vec3 pos); - - /** - * can be used by parts to trigger the tile or part to save. - */ - void markForSave(); - - /** - * part of the {@link LayerBase} - */ - void partChanged(); - - /** - * get the redstone state of host on this side, this value is cached internally. - * - * @param side - * @return true of the part host is receieveing redstone from an external source. - */ - boolean hasRedstone(ForgeDirection side); - - /** - * returns false if this block contains any parts or facades, true other wise. - */ - boolean isEmpty(); - - /** - * @return a mutable list of flags you can adjust to track state. - */ - Set getLayerFlags(); - - /** - * remove host from world... - */ - void cleanup(); - - /** - * notify neightbors uf updated status. - */ - void notifyNeighbors(); - - /** - * true if the tile is in the world, other wise false. - * - * @return - */ - boolean isInWorld(); +package appeng.api.parts; + +import appeng.api.util.AEColor; +import appeng.api.util.DimensionalCoord; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.Vec3; +import net.minecraftforge.common.util.ForgeDirection; + +import java.util.Set; + +/** + * Implemented on AE's TileEntity or AE's FMP Part. + * + * Do Not Implement + */ +public interface IPartHost +{ + + /** + * @return the facade container + */ + IFacadeContainer getFacadeContainer(); + + /** + * Test if you can add a part to the specified side of the Part Host, {@link ForgeDirection}.UNKNOWN is used to + * represent the cable in the middle. + * + * @param part to be added part + * @param side part placed onto side + * @return returns false if the part cannot be added. + */ + boolean canAddPart(ItemStack part, ForgeDirection side); + + /** + * try to add a new part to the specified side, returns false if it failed to be added. + * + * @param is new part + * @param side onto side + * @param owner with owning player + * @return null if the item failed to add, the side it was placed on other wise ( may different for cables, + * {@link ForgeDirection}.UNKNOWN ) + */ + ForgeDirection addPart(ItemStack is, ForgeDirection side, EntityPlayer owner); + + /** + * Get part by side ( center is {@link ForgeDirection}.UNKNOWN ) + * + * @param side side of part + * @return the part located on the specified side, or null if there is no part. + */ + IPart getPart(ForgeDirection side); + + /** + * removes the part on the side, this doesn't drop it or anything, if you don't do something with it, its just + * "gone" and its never coming back; think about it. + * + * if you want to drop the part you must request it prior to removing it. + * + * @param side side of part + * @param suppressUpdate + * - used if you need to replace a part's instance, without really removing it first. + */ + void removePart(ForgeDirection side, boolean suppressUpdate); + + /** + * something changed, might want to send a packet to clients to update state. + */ + void markForUpdate(); + + /** + * @return the physical location of the part host in the universe. + */ + DimensionalCoord getLocation(); + + /** + * @return the tile entity for the host, this can either be an FMP tile, or a AE tile + */ + TileEntity getTile(); + + /** + * @return the color of the host type ( this is determined by the middle cable. ) if no cable is present, it returns + * {@link AEColor} .Transparent other wise it returns the color of the cable in the center. + */ + AEColor getColor(); + + /** + * destroys the part container, for internal use. + */ + void clearContainer(); + + /** + * Used to test for FMP microblock blocking internally. + * + * @return returns if microblocks are blocking this cable path. + */ + boolean isBlocked(ForgeDirection side); + + /** + * finds the part located at the position ( pos must be relative, not global ) + * + * @param pos part position + * @return a new SelectedPart, this is never null. + */ + SelectedPart selectPart(Vec3 pos); + + /** + * can be used by parts to trigger the tile or part to save. + */ + void markForSave(); + + /** + * part of the {@link LayerBase} + */ + void partChanged(); + + /** + * get the redstone state of host on this side, this value is cached internally. + * + * @param side side of part + * @return true of the part host is receiving redstone from an external source. + */ + boolean hasRedstone(ForgeDirection side); + + /** + * returns false if this block contains any parts or facades, true other wise. + */ + boolean isEmpty(); + + /** + * @return a mutable list of flags you can adjust to track state. + */ + Set getLayerFlags(); + + /** + * remove host from world... + */ + void cleanup(); + + /** + * notify neighbors uf updated status. + */ + void notifyNeighbors(); + + /** + * true if the tile is in the world, other wise false. + * + * @return true if tile is in world + */ + boolean isInWorld(); } \ No newline at end of file diff --git a/src/api/java/appeng/api/parts/IPartItem.java b/src/api/java/appeng/api/parts/IPartItem.java index 584e8c8e..ca7a4b4f 100644 --- a/src/api/java/appeng/api/parts/IPartItem.java +++ b/src/api/java/appeng/api/parts/IPartItem.java @@ -9,19 +9,24 @@ import net.minecraft.item.ItemStack; * you must register your bus with the Bus renderer, using AEApi.instance().partHelper().setItemBusRenderer( this ); * * then simply add these two methods, which tell MC to use the Block Textures, and call AE's Bus Placement Code. - * - * @Override - * @SideOnly(Side.CLIENT) - * public int getSpriteNumber() - * { - * return 0; - * } - * - * @Override - * public boolean onItemUse(ItemStack is, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) - * { - * return AEApi.instance().partHelper().placeBus( is, x, y, z, side, player, world ); - * } + * + *
+ * 
+ * {@literal @}Override
+ * {@literal @}SideOnly(Side.CLIENT)
+ * public int getSpriteNumber()
+ * {
+ *     return 0;
+ * }
+ *
+ * {@literal @}Override
+ * public boolean onItemUse(ItemStack is, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
+ * {
+ *     return AEApi.instance().partHelper().placeBus( is, x, y, z, side, player, world );
+ * }
+ * 
+ * 
+ * */ public interface IPartItem { @@ -29,8 +34,8 @@ public interface IPartItem /** * create a new part instance, from the item stack. * - * @param is - * @return + * @param is item + * @return part from item */ IPart createPartFromItemStack(ItemStack is); diff --git a/src/api/java/appeng/api/parts/IPartRenderHelper.java b/src/api/java/appeng/api/parts/IPartRenderHelper.java index 8946b6fe..b00a7ca6 100644 --- a/src/api/java/appeng/api/parts/IPartRenderHelper.java +++ b/src/api/java/appeng/api/parts/IPartRenderHelper.java @@ -1,13 +1,13 @@ package appeng.api.parts; -import java.util.EnumSet; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.util.IIcon; import net.minecraftforge.common.util.ForgeDirection; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.util.EnumSet; public interface IPartRenderHelper { @@ -17,12 +17,12 @@ public interface IPartRenderHelper * * No complaints about the size, I like using pixels :P * - * @param minX - * @param minY - * @param minZ - * @param maxX - * @param maxY - * @param maxZ + * @param minX minimal x bound + * @param minY minimal y bound + * @param minZ minimal z bound + * @param maxX maximal x bound + * @param maxY maximal y bound + * @param maxZ maximal z bound */ void setBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ); @@ -31,12 +31,12 @@ public interface IPartRenderHelper * * render a single face. * - * @param x - * @param y - * @param z - * @param ico - * @param face - * @param renderer + * @param x x coord of part + * @param y y coord of part + * @param z z coord of part + * @param ico icon of part + * @param face direction its facing + * @param renderer renderer of part */ @SideOnly(Side.CLIENT) void renderFace(int x, int y, int z, IIcon ico, ForgeDirection face, RenderBlocks renderer); @@ -46,13 +46,13 @@ public interface IPartRenderHelper * * render a box with a cut out box in the center. * - * @param x - * @param y - * @param z - * @param ico - * @param face - * @param edgeThickness - * @param renderer + * @param x x pos of part + * @param y y pos of part + * @param z z pos of part + * @param ico icon of part + * @param face face of part + * @param edgeThickness thickness of the edge + * @param renderer renderer */ @SideOnly(Side.CLIENT) void renderFaceCutout(int x, int y, int z, IIcon ico, ForgeDirection face, float edgeThickness, RenderBlocks renderer); @@ -62,10 +62,10 @@ public interface IPartRenderHelper * * render a block of specified bounds. * - * @param x - * @param y - * @param z - * @param renderer + * @param x x pos of block + * @param y y pos of block + * @param z z pos of block + * @param renderer renderer */ @SideOnly(Side.CLIENT) void renderBlock(int x, int y, int z, RenderBlocks renderer); @@ -73,17 +73,17 @@ public interface IPartRenderHelper /** * render a single face in inventory renderer. * - * @param IIcon - * @param south - * @param renderer + * @param IIcon icon of part + * @param direction face of part + * @param renderer renderer */ @SideOnly(Side.CLIENT) - void renderInventoryFace(IIcon IIcon, ForgeDirection south, RenderBlocks renderer); + void renderInventoryFace(IIcon IIcon, ForgeDirection direction, RenderBlocks renderer); /** * render a box in inventory renderer. * - * @param renderer + * @param renderer renderer */ @SideOnly(Side.CLIENT) void renderInventoryBox(RenderBlocks renderer); @@ -93,28 +93,28 @@ public interface IPartRenderHelper * * set unique icons for each side of the block. * - * @param Down - * @param Up - * @param North - * @param South - * @param West - * @param East + * @param down down face + * @param up up face + * @param north north face + * @param south south face + * @param west west face + * @param east east face */ - void setTexture(IIcon Down, IIcon Up, IIcon North, IIcon South, IIcon West, IIcon East); + void setTexture(IIcon down, IIcon up, IIcon north, IIcon south, IIcon west, IIcon east); /** * inventory, and static renderer. * * set all sides to a single IIcon. * - * @param ico + * @param ico to be set icon */ void setTexture(IIcon ico); /** * configure the color multiplier for the inventory renderer. * - * @param whiteVariant + * @param whiteVariant color multiplier */ void setInvColor(int whiteVariant); @@ -144,34 +144,34 @@ public interface IPartRenderHelper * * Only worth it if you render more then 1 block. */ - ISimplifiedBundle useSimpliedRendering(int x, int y, int z, IBoxProvider p, ISimplifiedBundle sim); + ISimplifiedBundle useSimplifiedRendering(int x, int y, int z, IBoxProvider p, ISimplifiedBundle sim); /** - * disables, useSimpliedRendering. + * disables, useSimplifiedRendering. */ void normalRendering(); /** * render a block using the current renderer state. * - * @param x - * @param y - * @param z - * @param renderer + * @param x x pos of part + * @param y y pos of part + * @param z z pos of part + * @param renderer renderer of part */ void renderBlockCurrentBounds(int x, int y, int z, RenderBlocks renderer); /** * allow you to enable your part to render during the alpha pass or the standard pass. * - * @param pass + * @param pass render pass */ void renderForPass(int pass); /** * Set which faces to render, remember to set back to ALL when you are done. * - * @param complementOf + * @param complementOf sides to render */ void setFacesToRender(EnumSet complementOf); diff --git a/src/api/java/appeng/api/parts/LayerBase.java b/src/api/java/appeng/api/parts/LayerBase.java index 2aa74fbb..e976654b 100644 --- a/src/api/java/appeng/api/parts/LayerBase.java +++ b/src/api/java/appeng/api/parts/LayerBase.java @@ -1,23 +1,23 @@ package appeng.api.parts; -import java.util.Set; - import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.util.ForgeDirection; +import java.util.Set; + /** * All Layers must extends this, this get part implementation is provided to interface with the parts, however a real * implementation will be used at runtime. */ -public class LayerBase extends TileEntity // implements IPartHost +public abstract class LayerBase extends TileEntity // implements IPartHost { /** * Grants access for the layer to the parts of the host. * - * This Method looks silly, thats because its not used at runtime, a real implementation will be used instead. + * This Method looks silly, that is because its not used at runtime, a real implementation will be used instead. * - * @param side + * @param side side of part * @return the part for the requested side. */ public IPart getPart(ForgeDirection side) diff --git a/src/api/java/appeng/api/parts/PartItemStack.java b/src/api/java/appeng/api/parts/PartItemStack.java index 4c8c72dc..95a7474d 100644 --- a/src/api/java/appeng/api/parts/PartItemStack.java +++ b/src/api/java/appeng/api/parts/PartItemStack.java @@ -1,14 +1,14 @@ -package appeng.api.parts; - -public enum PartItemStack -{ - Pick, - - Break, - - Wrench, - - Network, - - World -} +package appeng.api.parts; + +public enum PartItemStack +{ + Pick, + + Break, + + Wrench, + + Network, + + World +} diff --git a/src/api/java/appeng/api/recipes/ICraftHandler.java b/src/api/java/appeng/api/recipes/ICraftHandler.java index 076768cc..df574c7f 100644 --- a/src/api/java/appeng/api/recipes/ICraftHandler.java +++ b/src/api/java/appeng/api/recipes/ICraftHandler.java @@ -1,19 +1,19 @@ package appeng.api.recipes; -import java.util.List; - import appeng.api.exceptions.MissingIngredientError; import appeng.api.exceptions.RecipeError; import appeng.api.exceptions.RegistrationError; +import java.util.List; + public interface ICraftHandler { /** * Called when your recipe handler receives a newly parsed list of inputs/outputs. * - * @param input - * @param output + * @param input parsed inputs + * @param output parsed outputs * @throws RecipeError */ public void setup(List> input, List> output) throws RecipeError; diff --git a/src/api/java/appeng/api/recipes/IIngredient.java b/src/api/java/appeng/api/recipes/IIngredient.java index 0785fd89..f17a219d 100644 --- a/src/api/java/appeng/api/recipes/IIngredient.java +++ b/src/api/java/appeng/api/recipes/IIngredient.java @@ -1,64 +1,64 @@ -package appeng.api.recipes; - -import net.minecraft.item.ItemStack; -import appeng.api.exceptions.MissingIngredientError; -import appeng.api.exceptions.RegistrationError; - -public interface IIngredient { - - /** - * Acquire a single input stack for the current recipe, if more then one ItemStack is possible a - * RegistrationError exception will be thrown, ignore these and let the system handle the error. - * - * @return a single ItemStack for the recipe handler. - * - * @throws RegistrationError - * @throws MissingIngredientError - */ - ItemStack getItemStack() throws RegistrationError, MissingIngredientError; - - /** - * Acquire a list of all the input stacks for the current recipe, this is for handlers that support - * multiple inputs per slot. - * - * @return an array of ItemStacks for the recipe handler. - * @throws RegistrationError - * @throws MissingIngredientError - */ - ItemStack[] getItemStackSet() throws RegistrationError, MissingIngredientError; - - /** - * If you wish to support air, you must test before geting the ItemStack, or ItemStackSet - * - * @return true if this slot contains no ItemStack, this is passed as "_" - */ - public boolean isAir(); - - /** - * @return The Name Space of the item. Prefer getItemStack or getItemStackSet - */ - public String getNameSpace(); - - /** - * @return The Name of the item. Prefer getItemStack or getItemStackSet - */ - public String getItemName(); - - /** - * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet - */ - public int getDamageValue(); - - /** - * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet - */ - public int getQty(); - - /** - * Bakes the lists in for faster runtime lookups. - * @throws MissingIngredientError - * @throws RegistrationError - */ - void bake() throws RegistrationError, MissingIngredientError; - -} +package appeng.api.recipes; + +import net.minecraft.item.ItemStack; +import appeng.api.exceptions.MissingIngredientError; +import appeng.api.exceptions.RegistrationError; + +public interface IIngredient { + + /** + * Acquire a single input stack for the current recipe, if more then one ItemStack is possible a + * RegistrationError exception will be thrown, ignore these and let the system handle the error. + * + * @return a single ItemStack for the recipe handler. + * + * @throws RegistrationError + * @throws MissingIngredientError + */ + ItemStack getItemStack() throws RegistrationError, MissingIngredientError; + + /** + * Acquire a list of all the input stacks for the current recipe, this is for handlers that support + * multiple inputs per slot. + * + * @return an array of ItemStacks for the recipe handler. + * @throws RegistrationError + * @throws MissingIngredientError + */ + ItemStack[] getItemStackSet() throws RegistrationError, MissingIngredientError; + + /** + * If you wish to support air, you must test before getting the ItemStack, or ItemStackSet + * + * @return true if this slot contains no ItemStack, this is passed as "_" + */ + public boolean isAir(); + + /** + * @return The Name Space of the item. Prefer getItemStack or getItemStackSet + */ + public String getNameSpace(); + + /** + * @return The Name of the item. Prefer getItemStack or getItemStackSet + */ + public String getItemName(); + + /** + * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet + */ + public int getDamageValue(); + + /** + * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet + */ + public int getQty(); + + /** + * Bakes the lists in for faster runtime lookups. + * @throws MissingIngredientError + * @throws RegistrationError + */ + void bake() throws RegistrationError, MissingIngredientError; + +} diff --git a/src/api/java/appeng/api/recipes/IRecipeHandler.java b/src/api/java/appeng/api/recipes/IRecipeHandler.java index d52a8157..153d1623 100644 --- a/src/api/java/appeng/api/recipes/IRecipeHandler.java +++ b/src/api/java/appeng/api/recipes/IRecipeHandler.java @@ -9,8 +9,8 @@ public interface IRecipeHandler /** * Call when you want to read recipes in from a file based on a loader * - * @param loader - * @param path + * @param loader recipe loader + * @param path path of file */ void parseRecipes(IRecipeLoader loader, String path); diff --git a/src/api/java/appeng/api/recipes/ISubItemResolver.java b/src/api/java/appeng/api/recipes/ISubItemResolver.java index a6a481b7..49a0bf31 100644 --- a/src/api/java/appeng/api/recipes/ISubItemResolver.java +++ b/src/api/java/appeng/api/recipes/ISubItemResolver.java @@ -4,9 +4,9 @@ public interface ISubItemResolver { /** - * @param namespace - * @param fullName - * @return either a ResolveReslult, or a ResolverResultSet + * @param namespace namespace of sub item + * @param fullName name of sub item + * @return either a ResolveResult, or a ResolverResultSet */ public Object resolveItemByName(String namespace, String fullName); diff --git a/src/api/java/appeng/api/storage/ICellContainer.java b/src/api/java/appeng/api/storage/ICellContainer.java index 44553ed5..8b1f7c21 100644 --- a/src/api/java/appeng/api/storage/ICellContainer.java +++ b/src/api/java/appeng/api/storage/ICellContainer.java @@ -11,7 +11,7 @@ public interface ICellContainer extends IActionHost, ICellProvider, ISaveProvide /** * tell the Cell container that this slot should blink, the slot number is relative to the * - * @param slot + * @param slot slot index */ void blinkCell(int slot); diff --git a/src/api/java/appeng/api/storage/ICellHandler.java b/src/api/java/appeng/api/storage/ICellHandler.java index 17ab7fac..1ddc839a 100644 --- a/src/api/java/appeng/api/storage/ICellHandler.java +++ b/src/api/java/appeng/api/storage/ICellHandler.java @@ -17,7 +17,7 @@ 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 + * @param is to be checked item * @return return true, if getCellHandler will not return null. */ boolean isCell(ItemStack is); @@ -27,11 +27,11 @@ public interface ICellHandler * * @param is * a storage cell item. - * @param save - * host, anytime the contents of your storage cell changes it should use this to request a save, please + * @param host + * anytime the contents of your storage cell changes it should use this to request a save, please * note, this value can be null. - * @param the - * storage channel requested. + * @param channel + * the storage channel requested. * * @return a new IMEHandler for the provided item */ @@ -67,12 +67,12 @@ public interface ICellHandler * is not available via ME Chests simply tell the user they can't use it, or something, other wise you should open * your gui and display the cell to the user. * - * @param player - * @param chest - * @param cellHandler - * @param inv - * @param is - * @param chan + * @param player player opening chest gui + * @param chest to be opened chest + * @param cellHandler cell handler + * @param inv inventory handler + * @param is item + * @param chan storage channel */ void openChestGui(EntityPlayer player, IChestOrDrive chest, ICellHandler cellHandler, IMEInventoryHandler inv, ItemStack is, StorageChannel chan); @@ -85,10 +85,8 @@ public interface ICellHandler * * 3 - red, ( usually means the cell is 100% full ) * - * @param is - * the cell item. ( use the handler for any details you can ) - * @param the - * handler for the cell is provides for reference, you can cast this to your handler. + * @param is the cell item. ( use the handler for any details you can ) + * @param handler the handler for the cell is provides for reference, you can cast this to your handler. * * @return get the status of the cell based on its contents. */ diff --git a/src/api/java/appeng/api/storage/ICellRegistry.java b/src/api/java/appeng/api/storage/ICellRegistry.java index 40c138c3..4e983102 100644 --- a/src/api/java/appeng/api/storage/ICellRegistry.java +++ b/src/api/java/appeng/api/storage/ICellRegistry.java @@ -15,14 +15,14 @@ public interface ICellRegistry /** * Register a new handler. * - * @param handler + * @param handler cell handler */ void addCellHandler(ICellHandler handler); /** * return true, if you can get a InventoryHandler for the item passed. * - * @param is + * @param is to be checked item * @return 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. ) */ @@ -31,7 +31,7 @@ public interface ICellRegistry /** * get the handler, for the requested type. * - * @param is + * @param is to be checked item * @return the handler registered for this item type. */ ICellHandler getHandler(ItemStack is); @@ -39,9 +39,9 @@ public interface ICellRegistry /** * returns an IMEInventoryHandler for the provided item. * - * @param is + * @param is item with inventory handler * @param host can be null, or the hosting tile / part. - * @param the storage channel to request the handler for. + * @param chan the storage channel to request the handler for. * * @return new IMEInventoryHandler, or null if there isn't one. */ diff --git a/src/api/java/appeng/api/storage/ICellWorkbenchItem.java b/src/api/java/appeng/api/storage/ICellWorkbenchItem.java index 06824619..e4fab828 100644 --- a/src/api/java/appeng/api/storage/ICellWorkbenchItem.java +++ b/src/api/java/appeng/api/storage/ICellWorkbenchItem.java @@ -10,7 +10,7 @@ public interface ICellWorkbenchItem /** * if this return false, the item will not be treated as a cell, and cannot be inserted into the work bench. * - * @param is + * @param is item * @return true if the item should be editable in the cell workbench. */ boolean isEditable(ItemStack is); diff --git a/src/api/java/appeng/api/storage/IExternalStorageHandler.java b/src/api/java/appeng/api/storage/IExternalStorageHandler.java index 7021261b..a17cdd6f 100644 --- a/src/api/java/appeng/api/storage/IExternalStorageHandler.java +++ b/src/api/java/appeng/api/storage/IExternalStorageHandler.java @@ -14,8 +14,8 @@ public interface IExternalStorageHandler * if this can handle the provided inventory, return true. ( Generally skipped by AE, and it just calls getInventory * ) * - * @param te - * @param mySrc + * @param te to be handled tile entity + * @param mySrc source * @return true, if it can get a handler via getInventory */ boolean canHandle(TileEntity te, ForgeDirection d, StorageChannel channel, BaseActionSource mySrc); @@ -26,10 +26,10 @@ public interface IExternalStorageHandler * please note that if your inventory changes and requires polling, you must use an {@link IMEMonitor} instead of an * {@link IMEInventory} failure to do so will result in invalid item counts and reporting of the inventory. * - * @param te - * @param d - * @param channel - * @param src + * @param te to be handled tile entity + * @param d direction + * @param channel channel + * @param src source * @return The Handler for the inventory */ IMEInventory getInventory(TileEntity te, ForgeDirection d, StorageChannel channel, BaseActionSource src); diff --git a/src/api/java/appeng/api/storage/IExternalStorageRegistry.java b/src/api/java/appeng/api/storage/IExternalStorageRegistry.java index ac23808b..7edbc8b9 100644 --- a/src/api/java/appeng/api/storage/IExternalStorageRegistry.java +++ b/src/api/java/appeng/api/storage/IExternalStorageRegistry.java @@ -16,15 +16,15 @@ public interface IExternalStorageRegistry /** * A registry for StorageBus interactions * - * @param esh + * @param esh storage handler */ void addExternalStorageInterface(IExternalStorageHandler esh); /** - * @param te - * @param opposite - * @param channel - * @param mySrc + * @param te tile entity + * @param opposite direction + * @param channel channel + * @param mySrc source * @return the handler for a given tile / forge direction */ IExternalStorageHandler getHandler(TileEntity te, ForgeDirection opposite, StorageChannel channel, BaseActionSource mySrc); diff --git a/src/api/java/appeng/api/storage/IMEInventory.java b/src/api/java/appeng/api/storage/IMEInventory.java index 5dd9b586..d51be9fa 100644 --- a/src/api/java/appeng/api/storage/IMEInventory.java +++ b/src/api/java/appeng/api/storage/IMEInventory.java @@ -21,9 +21,9 @@ public interface IMEInventory /** * Store new items, or simulate the addition of new items into the ME Inventory. * - * @param input - * item to add. - * @param mode + * @param input item to add. + * @param type action type + * @param src action source * @return returns the number of items not added. */ public StackType injectItems(StackType input, Actionable type, BaseActionSource src); diff --git a/src/api/java/appeng/api/storage/IMEInventoryHandler.java b/src/api/java/appeng/api/storage/IMEInventoryHandler.java index 0815fc64..a93d8b86 100644 --- a/src/api/java/appeng/api/storage/IMEInventoryHandler.java +++ b/src/api/java/appeng/api/storage/IMEInventoryHandler.java @@ -49,8 +49,8 @@ public interface IMEInventoryHandler extends IMEInve * pass back value for blinkCell. * * @return the slot index for the cell that this represents in the storage unit, the method on the - * {@link ICellContainer} will be called with this value, only trust the return value of this mehod if you - * are the implementor of the {@link IMEInventoryHandler}. + * {@link ICellContainer} will be called with this value, only trust the return value of this method if you + * are the implementer of the {@link IMEInventoryHandler}. */ public int getSlot(); diff --git a/src/api/java/appeng/api/storage/IMEMonitor.java b/src/api/java/appeng/api/storage/IMEMonitor.java index de3f9991..439bb00e 100644 --- a/src/api/java/appeng/api/storage/IMEMonitor.java +++ b/src/api/java/appeng/api/storage/IMEMonitor.java @@ -15,7 +15,7 @@ public interface IMEMonitor extends IMEInventoryHandler, public IItemList getAvailableItems(IItemList out); /** - * Get access to the full item list of the network, preferred over {@link IMEInventory} .getAvaialbleItems(...) + * Get access to the full item list of the network, preferred over {@link IMEInventory} .getAvailableItems(...) * * @return full storage list. */ diff --git a/src/api/java/appeng/api/storage/IMEMonitorHandlerReceiver.java b/src/api/java/appeng/api/storage/IMEMonitorHandlerReceiver.java index 328acf1d..f0f50d97 100644 --- a/src/api/java/appeng/api/storage/IMEMonitorHandlerReceiver.java +++ b/src/api/java/appeng/api/storage/IMEMonitorHandlerReceiver.java @@ -10,15 +10,15 @@ public interface IMEMonitorHandlerReceiver /** * return true if this object should remain as a listener. * - * @param verificationToken - * @return + * @param verificationToken to be checked object + * @return true if object should remain as a listener */ boolean isValid(Object verificationToken); /** * called when changes are made to the Monitor, but only if listener is still valid. * - * @param change + * @param change done change */ void postChange(IBaseMonitor monitor, Iterable change, BaseActionSource actionSource); diff --git a/src/api/java/appeng/api/storage/IStorageHelper.java b/src/api/java/appeng/api/storage/IStorageHelper.java index 6a52c905..3f3ceb7e 100644 --- a/src/api/java/appeng/api/storage/IStorageHelper.java +++ b/src/api/java/appeng/api/storage/IStorageHelper.java @@ -1,12 +1,5 @@ package appeng.api.storage; -import io.netty.buffer.ByteBuf; - -import java.io.IOException; - -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraftforge.fluids.FluidStack; import appeng.api.networking.crafting.ICraftingLink; import appeng.api.networking.crafting.ICraftingRequester; import appeng.api.networking.energy.IEnergySource; @@ -14,6 +7,12 @@ import appeng.api.networking.security.BaseActionSource; import appeng.api.storage.data.IAEFluidStack; import appeng.api.storage.data.IAEItemStack; import appeng.api.storage.data.IItemList; +import io.netty.buffer.ByteBuf; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraftforge.fluids.FluidStack; + +import java.io.IOException; public interface IStorageHelper { @@ -21,8 +20,8 @@ public interface IStorageHelper /** * load a crafting link from nbt data. * - * @param data - * @return + * @param data to be loaded data + * @return crafting link */ ICraftingLink loadCraftingLink(NBTTagCompound data, ICraftingRequester req); @@ -55,28 +54,28 @@ public interface IStorageHelper /** * Read a AE Item Stack from a byte stream, returns a AE item stack or null. * - * @param input - * @return - * @throws IOException + * @param input to be loaded data + * @return item based of data + * @throws IOException if file could not be read */ IAEItemStack readItemFromPacket(ByteBuf input) throws IOException; /** * Read a AE Fluid Stack from a byte stream, returns a AE fluid stack or null. * - * @param input - * @return - * @throws IOException + * @param input to be loaded data + * @return fluid based on data + * @throws IOException if file could not be written */ IAEFluidStack readFluidFromPacket(ByteBuf input) throws IOException; /** * use energy from energy, to remove request items from cell, at the request of src. * - * @param energy - * @param cell - * @param request - * @param src + * @param energy to be drained energy source + * @param cell cell of requested items + * @param request requested items + * @param src action source * @return items that successfully extracted. */ IAEItemStack poweredExtraction(IEnergySource energy, IMEInventory cell, IAEItemStack request, BaseActionSource src); @@ -84,10 +83,10 @@ public interface IStorageHelper /** * use energy from energy, to inject input items into cell, at the request of src * - * @param energy - * @param cell - * @param input - * @param src + * @param energy to be added energy source + * @param cell injected cell + * @param input to be injected items + * @param src action source * @return items that failed to insert. */ IAEItemStack poweredInsert(IEnergySource energy, IMEInventory cell, IAEItemStack input, BaseActionSource src); diff --git a/src/api/java/appeng/api/storage/ITerminalHost.java b/src/api/java/appeng/api/storage/ITerminalHost.java index fbb7084e..70f76bd0 100644 --- a/src/api/java/appeng/api/storage/ITerminalHost.java +++ b/src/api/java/appeng/api/storage/ITerminalHost.java @@ -1,8 +1,8 @@ package appeng.api.storage; -import appeng.api.util.IConfigureableObject; +import appeng.api.util.IConfigurableObject; -public interface ITerminalHost extends IStorageMonitorable, IConfigureableObject +public interface ITerminalHost extends IStorageMonitorable, IConfigurableObject { } diff --git a/src/api/java/appeng/api/storage/MEMonitorHandler.java b/src/api/java/appeng/api/storage/MEMonitorHandler.java index 25ffdbc5..0af84ecc 100644 --- a/src/api/java/appeng/api/storage/MEMonitorHandler.java +++ b/src/api/java/appeng/api/storage/MEMonitorHandler.java @@ -1,17 +1,16 @@ package appeng.api.storage; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map.Entry; - import appeng.api.config.AccessRestriction; import appeng.api.config.Actionable; import appeng.api.networking.security.BaseActionSource; import appeng.api.storage.data.IAEStack; import appeng.api.storage.data.IItemList; - import com.google.common.collect.ImmutableList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map.Entry; + /** * Common implementation of a simple class that monitors injection/extraction of a inventory to send events to a list of * listeners. @@ -49,15 +48,15 @@ public class MEMonitorHandler implements IMEMonitor< while (i.hasNext()) { Entry, Object> o = i.next(); - IMEMonitorHandlerReceiver recv = o.getKey(); - if ( recv.isValid( o.getValue() ) ) - recv.postChange( this, diff, src ); + IMEMonitorHandlerReceiver receiver = o.getKey(); + if ( receiver.isValid( o.getValue() ) ) + receiver.postChange( this, diff, src ); else i.remove(); } } - private StackType monitorDiffrence(IAEStack original, StackType leftOvers, boolean extraction, BaseActionSource src) + private StackType monitorDifference(IAEStack original, StackType leftOvers, boolean extraction, BaseActionSource src) { StackType diff = (StackType) original.copy(); @@ -99,7 +98,7 @@ public class MEMonitorHandler implements IMEMonitor< { if ( mode == Actionable.SIMULATE ) return getHandler().injectItems( input, mode, src ); - return monitorDiffrence( (StackType) input.copy(), getHandler().injectItems( input, mode, src ), false, src ); + return monitorDifference(input.copy(), getHandler().injectItems(input, mode, src), false, src); } @Override @@ -107,7 +106,7 @@ public class MEMonitorHandler implements IMEMonitor< { if ( mode == Actionable.SIMULATE ) return getHandler().extractItems( request, mode, src ); - return monitorDiffrence( (StackType) request.copy(), getHandler().extractItems( request, mode, src ), true, src ); + return monitorDifference(request.copy(), getHandler().extractItems(request, mode, src), true, src); } @Override diff --git a/src/api/java/appeng/api/storage/StorageChannel.java b/src/api/java/appeng/api/storage/StorageChannel.java index 1ada1509..6bf69619 100644 --- a/src/api/java/appeng/api/storage/StorageChannel.java +++ b/src/api/java/appeng/api/storage/StorageChannel.java @@ -1,33 +1,33 @@ -package appeng.api.storage; - -import appeng.api.AEApi; -import appeng.api.storage.data.IAEFluidStack; -import appeng.api.storage.data.IAEItemStack; -import appeng.api.storage.data.IAEStack; -import appeng.api.storage.data.IItemList; - -public enum StorageChannel -{ - /** - * AE2's Default Storage. - */ - ITEMS( IAEItemStack.class ), - - /** - * AE2's Fluid Based Storage ( mainly added to better support ExtraCells ) - */ - FLUIDS( IAEFluidStack.class ); - - public final Class type; - - private StorageChannel( Class t ) { - type = t; - } - - public IItemList createList() { - if ( this == ITEMS ) - return AEApi.instance().storage().createItemList(); - else - return AEApi.instance().storage().createFluidList(); - } -} +package appeng.api.storage; + +import appeng.api.AEApi; +import appeng.api.storage.data.IAEFluidStack; +import appeng.api.storage.data.IAEItemStack; +import appeng.api.storage.data.IAEStack; +import appeng.api.storage.data.IItemList; + +public enum StorageChannel +{ + /** + * AE2's Default Storage. + */ + ITEMS( IAEItemStack.class ), + + /** + * AE2's Fluid Based Storage ( mainly added to better support ExtraCells ) + */ + FLUIDS( IAEFluidStack.class ); + + public final Class type; + + private StorageChannel( Class t ) { + type = t; + } + + public IItemList createList() { + if ( this == ITEMS ) + return AEApi.instance().storage().createItemList(); + else + return AEApi.instance().storage().createFluidList(); + } +} diff --git a/src/api/java/appeng/api/storage/data/IAEFluidStack.java b/src/api/java/appeng/api/storage/data/IAEFluidStack.java index 5d134c05..9a1ad283 100644 --- a/src/api/java/appeng/api/storage/data/IAEFluidStack.java +++ b/src/api/java/appeng/api/storage/data/IAEFluidStack.java @@ -45,7 +45,7 @@ public interface IAEFluidStack extends IAEStack /** * quick way to get access to the Forge Fluid Definition. * - * @return + * @return fluid definition */ Fluid getFluid(); diff --git a/src/api/java/appeng/api/storage/data/IAEItemStack.java b/src/api/java/appeng/api/storage/data/IAEItemStack.java index 5ccc0314..26cbbb58 100644 --- a/src/api/java/appeng/api/storage/data/IAEItemStack.java +++ b/src/api/java/appeng/api/storage/data/IAEItemStack.java @@ -50,7 +50,7 @@ public interface IAEItemStack extends IAEStack /** * quick way to get access to the MC Item Definition. * - * @return + * @return item definition */ Item getItem(); @@ -67,16 +67,16 @@ public interface IAEItemStack extends IAEStack /** * compare the item/damage/nbt of the stack. * - * @param otherStack - * @return + * @param otherStack to be compared item + * @return true if it is the same type (same item, damage, nbt) */ boolean isSameType(IAEItemStack otherStack); /** * compare the item/damage/nbt of the stack. * - * @param otherStack - * @return + * @param stored to be compared item + * @return true if it is the same type (same item, damage, nbt) */ boolean isSameType(ItemStack stored); } \ No newline at end of file diff --git a/src/api/java/appeng/api/storage/data/IAEStack.java b/src/api/java/appeng/api/storage/data/IAEStack.java index 86f72f52..2261f998 100644 --- a/src/api/java/appeng/api/storage/data/IAEStack.java +++ b/src/api/java/appeng/api/storage/data/IAEStack.java @@ -1,179 +1,178 @@ -package appeng.api.storage.data; - -import io.netty.buffer.ByteBuf; - -import java.io.IOException; - -import net.minecraft.nbt.NBTTagCompound; -import appeng.api.config.FuzzyMode; -import appeng.api.storage.StorageChannel; - -public interface IAEStack -{ - - /** - * add two stacks together - * - * @param is - */ - void add(StackType is); - - /** - * number of items in the stack. - * - * @return basically ItemStack.stackSize - */ - long getStackSize(); - - /** - * changes the number of items in the stack. - * - * @param basically - * , ItemStack.stackSize = N - */ - StackType 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. - */ - StackType 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 - */ - StackType setCraftable(boolean isCraftable); - - /** - * clears, requsetable, craftable, and stack sizes. - */ - StackType reset(); - - /** - * returns true, if the item can be crafted, requested, or extracted. - * - * @return isThisRecordMeaningful - */ - boolean isMeaninful(); - - /** - * 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); - - /** - * write to a NBTTagCompound. - * - * @param i - */ - void writeToNBT(NBTTagCompound i); - - /** - * Compare stacks using precise logic. - * - * a IAEItemStack to another AEItemStack or a ItemStack. - * - * or - * - * IAEFluidStack, FluidStack - * - * @param obj - * @return true if they are the same. - */ - @Override - boolean equals(Object obj); - - /** - * compare stacks using fuzzy logic - * - * a IAEItemStack to another AEItemStack or a ItemStack. - * - * @param st - * @param mode - * @return true if two stacks are equal based on AE Fuzzy Comparison. - */ - boolean fuzzyComparison(Object st, FuzzyMode mode); - - /** - * Slower for disk saving, but smaller/more efficient for packets. - * - * @param data - * @throws IOException - */ - void writeToPacket(ByteBuf data) throws IOException; - - /** - * Clone the Item / Fluid Stack - * - * @return a new Stack, which is copied from the original. - */ - StackType copy(); - - /** - * create an empty stack. - * - * @return a new stack, which represents an empty copy of the original. - */ - StackType empty(); - - /** - * obtain the NBT Data for the item. - * - * @return - */ - IAETagCompound getTagCompound(); - - /** - * @return true if the stack is a {@link IAEItemStack} - */ - boolean isItem(); - - /** - * @return true if the stack is a {@link IAEFluidStack} - */ - boolean isFluid(); - - /** - * @return ITEM or FLUID - */ - StorageChannel getChannel(); - -} +package appeng.api.storage.data; + +import appeng.api.config.FuzzyMode; +import appeng.api.storage.StorageChannel; +import io.netty.buffer.ByteBuf; +import net.minecraft.nbt.NBTTagCompound; + +import java.io.IOException; + +public interface IAEStack +{ + + /** + * add two stacks together + * + * @param is added item + */ + void add(StackType is); + + /** + * number of items in the stack. + * + * @return basically ItemStack.stackSize + */ + long getStackSize(); + + /** + * changes the number of items in the stack. + * + * @param stackSize + * , ItemStack.stackSize = N + */ + StackType 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. + */ + StackType 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 can item be crafted + */ + StackType setCraftable(boolean isCraftable); + + /** + * clears, requestable, craftable, and stack sizes. + */ + StackType reset(); + + /** + * returns true, if the item can be crafted, requested, or extracted. + * + * @return isThisRecordMeaningful + */ + boolean isMeaningful(); + + /** + * Adds more to the stack size... + * + * @param i additional stack size + */ + void incStackSize(long i); + + /** + * removes some from the stack size. + */ + void decStackSize(long i); + + /** + * adds items to the requestable + * + * @param i increased amount of requested items + */ + void incCountRequestable(long i); + + /** + * removes items from the requestable + * + * @param i decreased amount of requested items + */ + void decCountRequestable(long i); + + /** + * write to a NBTTagCompound. + * + * @param i to be written data + */ + void writeToNBT(NBTTagCompound i); + + /** + * Compare stacks using precise logic. + * + * a IAEItemStack to another AEItemStack or a ItemStack. + * + * or + * + * IAEFluidStack, FluidStack + * + * @param obj compared object + * @return true if they are the same. + */ + @Override + boolean equals(Object obj); + + /** + * compare stacks using fuzzy logic + * + * a IAEItemStack to another AEItemStack or a ItemStack. + * + * @param st stacks + * @param mode used fuzzy mode + * @return true if two stacks are equal based on AE Fuzzy Comparison. + */ + boolean fuzzyComparison(Object st, FuzzyMode mode); + + /** + * Slower for disk saving, but smaller/more efficient for packets. + * + * @param data to be written data + * @throws IOException + */ + void writeToPacket(ByteBuf data) throws IOException; + + /** + * Clone the Item / Fluid Stack + * + * @return a new Stack, which is copied from the original. + */ + StackType copy(); + + /** + * create an empty stack. + * + * @return a new stack, which represents an empty copy of the original. + */ + StackType empty(); + + /** + * obtain the NBT Data for the item. + * + * @return nbt data + */ + IAETagCompound getTagCompound(); + + /** + * @return true if the stack is a {@link IAEItemStack} + */ + boolean isItem(); + + /** + * @return true if the stack is a {@link IAEFluidStack} + */ + boolean isFluid(); + + /** + * @return ITEM or FLUID + */ + StorageChannel getChannel(); + +} diff --git a/src/api/java/appeng/api/storage/data/IAETagCompound.java b/src/api/java/appeng/api/storage/data/IAETagCompound.java index 8fe65e85..ef283978 100644 --- a/src/api/java/appeng/api/storage/data/IAETagCompound.java +++ b/src/api/java/appeng/api/storage/data/IAETagCompound.java @@ -12,14 +12,14 @@ public interface IAETagCompound { /** - * @return a copy ( the copy will not be a IAETagCompount, it will be a NBTTagCompound ) + * @return a copy ( the copy will not be a IAETagCompound, it will be a NBTTagCompound ) */ public NBTTagCompound getNBTTagCompoundCopy(); /** * compare to other NBTTagCompounds or IAETagCompounds * - * @param a + * @param a compared object * @return true, if they are the same. */ @Override diff --git a/src/api/java/appeng/api/storage/data/IItemContainer.java b/src/api/java/appeng/api/storage/data/IItemContainer.java index d8fd7640..fb12493d 100644 --- a/src/api/java/appeng/api/storage/data/IItemContainer.java +++ b/src/api/java/appeng/api/storage/data/IItemContainer.java @@ -1,9 +1,9 @@ package appeng.api.storage.data; -import java.util.Collection; - import appeng.api.config.FuzzyMode; +import java.util.Collection; + /** * Represents a list of items in AE. * @@ -17,19 +17,19 @@ public interface IItemContainer /** * add a stack to the list, this will merge the stack with an item already in the list if found. * - * @param option + * @param option added stack */ public void add(StackType option); // adds stack as is /** - * @param i + * @param i compared item * @return a stack equivalent to the stack passed in, but with the correct stack size information, or null if its * not present */ StackType findPrecise(StackType i); /** - * @param input + * @param input compared item * @return a list of relevant fuzzy matched stacks */ public Collection findFuzzy(StackType input, FuzzyMode fuzzy); diff --git a/src/api/java/appeng/api/storage/data/IItemList.java b/src/api/java/appeng/api/storage/data/IItemList.java index 6968d23d..d8f06d11 100644 --- a/src/api/java/appeng/api/storage/data/IItemList.java +++ b/src/api/java/appeng/api/storage/data/IItemList.java @@ -16,22 +16,22 @@ public interface IItemList extends IItemContainer entity(AEColor color); - - /** - * @return an {@link ItemStack} with specified quantity of this item. - */ - ItemStack stack(AEColor color, int stackSize); - - /** - * @param stackSize - * - stack size of the result. - * @return an array of all colors. - */ - ItemStack[] allStacks(int stackSize); - - /** - * Compare {@link ItemStack} with this {@link AEItemDefinition} - * - * @param comparableItem - * @return true if the item stack is a matching item. - */ - boolean sameAs(AEColor color, ItemStack comparableItem); - -} +package appeng.api.util; + +import net.minecraft.block.Block; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; + +public interface AEColoredItemDefinition +{ + + /** + * @return the {@link Block} Implementation if applicable + */ + Block block(AEColor color); + + /** + * @return the {@link Item} Implementation if applicable + */ + Item item(AEColor color); + + /** + * @return the {@link TileEntity} Class if applicable. + */ + Class entity(AEColor color); + + /** + * @return an {@link ItemStack} with specified quantity of this item. + */ + ItemStack stack(AEColor color, int stackSize); + + /** + * @param stackSize + * - stack size of the result. + * @return an array of all colors. + */ + ItemStack[] allStacks(int stackSize); + + /** + * Compare {@link ItemStack} with this {@link AEItemDefinition} + * + * @param color compared color of item + * @param comparableItem compared item + * @return true if the item stack is a matching item. + */ + boolean sameAs(AEColor color, ItemStack comparableItem); + +} diff --git a/src/api/java/appeng/api/util/AEItemDefinition.java b/src/api/java/appeng/api/util/AEItemDefinition.java index 2a423473..88002180 100644 --- a/src/api/java/appeng/api/util/AEItemDefinition.java +++ b/src/api/java/appeng/api/util/AEItemDefinition.java @@ -1,54 +1,54 @@ -package appeng.api.util; - -import net.minecraft.block.Block; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.world.IBlockAccess; - -/** - * Gives easy access to different part of the various, items/blocks/materials in AE. - */ -public interface AEItemDefinition -{ - - /** - * @return the {@link Block} Implementation if applicable - */ - Block block(); - - /** - * @return the {@link Item} Implementation if applicable - */ - Item item(); - - /** - * @return the {@link TileEntity} Class if applicable. - */ - Class entity(); - - /** - * @return an {@link ItemStack} with specified quantity of this item. - */ - ItemStack stack(int stackSize); - - /** - * Compare {@link ItemStack} with this {@link AEItemDefinition} - * - * @param comparableItem - * @return true if the item stack is a matching item. - */ - boolean sameAsStack(ItemStack comparableItem); - - /** - * Compare Block with world. - * - * @param world - * @param x - * @param y - * @param z - * - * @return if the block is placed in the world at the specific location. - */ - boolean sameAsBlock(IBlockAccess world, int x, int y, int z); -} +package appeng.api.util; + +import net.minecraft.block.Block; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.world.IBlockAccess; + +/** + * Gives easy access to different part of the various, items/blocks/materials in AE. + */ +public interface AEItemDefinition +{ + + /** + * @return the {@link Block} Implementation if applicable + */ + Block block(); + + /** + * @return the {@link Item} Implementation if applicable + */ + Item item(); + + /** + * @return the {@link TileEntity} Class if applicable. + */ + Class entity(); + + /** + * @return an {@link ItemStack} with specified quantity of this item. + */ + ItemStack stack(int stackSize); + + /** + * Compare {@link ItemStack} with this {@link AEItemDefinition} + * + * @param comparableItem compared item + * @return true if the item stack is a matching item. + */ + boolean sameAsStack(ItemStack comparableItem); + + /** + * Compare Block with world. + * + * @param world world of block + * @param x x pos of block + * @param y y pos of block + * @param z z pos of block + * + * @return if the block is placed in the world at the specific location. + */ + boolean sameAsBlock(IBlockAccess world, int x, int y, int z); +} diff --git a/src/api/java/appeng/api/util/DimensionalCoord.java b/src/api/java/appeng/api/util/DimensionalCoord.java index c6025395..2f528a0a 100644 --- a/src/api/java/appeng/api/util/DimensionalCoord.java +++ b/src/api/java/appeng/api/util/DimensionalCoord.java @@ -9,8 +9,8 @@ import net.minecraft.world.World; public class DimensionalCoord extends WorldCoord { - private World w; - private int dimId; + private final World w; + private final int dimId; public DimensionalCoord(DimensionalCoord s) { super( s.x, s.y, s.z ); @@ -44,9 +44,7 @@ public class DimensionalCoord extends WorldCoord @Override public boolean equals(Object obj) { - if ( obj instanceof DimensionalCoord ) - return isEqual( (DimensionalCoord) obj ); - return false; + return obj instanceof DimensionalCoord && isEqual((DimensionalCoord) obj); } @Override diff --git a/src/api/java/appeng/api/util/ICommonTile.java b/src/api/java/appeng/api/util/ICommonTile.java index 82a52509..0b34cc2b 100644 --- a/src/api/java/appeng/api/util/ICommonTile.java +++ b/src/api/java/appeng/api/util/ICommonTile.java @@ -1,23 +1,23 @@ -package appeng.api.util; - -import java.util.ArrayList; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -public interface ICommonTile -{ - - /** - * implemented on AE's Tile Entities, Gets a list of drops that the entity will normally drop, this doesn't include - * the block itself. - * - * @param world - * @param x - * @param y - * @param z - * @param drops - */ - void getDrops(World world, int x, int y, int z, ArrayList drops); - +package appeng.api.util; + +import net.minecraft.item.ItemStack; +import net.minecraft.world.World; + +import java.util.ArrayList; + +public interface ICommonTile +{ + + /** + * implemented on AE's Tile Entities, Gets a list of drops that the entity will normally drop, this doesn't include + * the block itself. + * + * @param world world of tile entity + * @param x x pos of tile entity + * @param y y pos of tile entity + * @param z z pos of tile entity + * @param drops drops of tile entity + */ + void getDrops(World world, int x, int y, int z, ArrayList drops); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/util/IConfigManager.java b/src/api/java/appeng/api/util/IConfigManager.java index f8cddb84..d383f981 100644 --- a/src/api/java/appeng/api/util/IConfigManager.java +++ b/src/api/java/appeng/api/util/IConfigManager.java @@ -1,13 +1,13 @@ package appeng.api.util; -import java.util.Set; - import net.minecraft.nbt.NBTTagCompound; +import java.util.Set; + /** * Used to adjust settings on an object, * - * Obtained via {@link IConfigureableObject} + * Obtained via {@link IConfigurableObject} */ public interface IConfigManager { @@ -15,47 +15,46 @@ public interface IConfigManager /** * get a list of different settings * - * @return + * @return enum set of settings */ Set getSettings(); /** * used to initialize the configuration manager, should be called for all settings. * - * @param settingName - * @param defaultValue - * @return + * @param settingName name of setting + * @param defaultValue default value of setting */ void registerSetting(Enum settingName, Enum defaultValue); /** - * Get Value of a particlar setting + * Get Value of a particular setting * - * @param settingName - * @return + * @param settingName name of setting + * @return value of setting */ Enum getSetting(Enum settingName); /** * Change setting * - * @param settingName - * @param newValue - * @return + * @param settingName to be changed setting + * @param newValue new value for setting + * @return changed setting */ Enum putSetting(Enum settingName, Enum newValue); /** * write all settings to the NBT Tag so they can be read later. * - * @param dest + * @param dest to be written nbt tag */ void writeToNBT(NBTTagCompound dest); /** * Only works after settings have been registered * - * @param src + * @param src to be read nbt tag */ void readFromNBT(NBTTagCompound src); diff --git a/src/api/java/appeng/api/util/IConfigureableObject.java b/src/api/java/appeng/api/util/IConfigurableObject.java similarity index 82% rename from src/api/java/appeng/api/util/IConfigureableObject.java rename to src/api/java/appeng/api/util/IConfigurableObject.java index 4e36b3f2..6a3ef669 100644 --- a/src/api/java/appeng/api/util/IConfigureableObject.java +++ b/src/api/java/appeng/api/util/IConfigurableObject.java @@ -3,7 +3,7 @@ package appeng.api.util; /** * Implemented by various Tiles or Parts in AE */ -public interface IConfigureableObject +public interface IConfigurableObject { /** diff --git a/src/api/java/appeng/api/util/IOrientable.java b/src/api/java/appeng/api/util/IOrientable.java index e130ccb1..8574a43a 100644 --- a/src/api/java/appeng/api/util/IOrientable.java +++ b/src/api/java/appeng/api/util/IOrientable.java @@ -7,7 +7,7 @@ import net.minecraftforge.common.util.ForgeDirection; * * and it can be used to manipulate the direction of some machines, most of these orientations are purely visual. * - * AE also responds to {@link Block}.rotateBlock + * AE also responds to Block.rotateBlock */ public interface IOrientable { @@ -29,8 +29,8 @@ public interface IOrientable /** * Update the orientation - * @param Forward - * @param Up + * @param Forward new forward direction + * @param Up new upwards direction */ void setOrientation(ForgeDirection Forward, ForgeDirection Up); diff --git a/src/api/java/appeng/api/util/IOrientableBlock.java b/src/api/java/appeng/api/util/IOrientableBlock.java index 95bf11e3..d4484924 100644 --- a/src/api/java/appeng/api/util/IOrientableBlock.java +++ b/src/api/java/appeng/api/util/IOrientableBlock.java @@ -1,25 +1,25 @@ -package appeng.api.util; - -import net.minecraft.world.IBlockAccess; - -/** - * Implemented on many of AE's non Tile Entity Blocks as a way to get a IOrientable. - */ -public interface IOrientableBlock -{ - - /** - * @return if this block uses metadata to store its rotation. - */ - boolean usesMetadata(); - - /** - * @param world - * @param x - * @param y - * @param z - * @return a IOrientable if applicable - */ - IOrientable getOrientable(IBlockAccess world, int x, int y, int z); - +package appeng.api.util; + +import net.minecraft.world.IBlockAccess; + +/** + * Implemented on many of AE's non Tile Entity Blocks as a way to get a IOrientable. + */ +public interface IOrientableBlock +{ + + /** + * @return if this block uses metadata to store its rotation. + */ + boolean usesMetadata(); + + /** + * @param world world of block + * @param x x pos of block + * @param y y pos of block + * @param z z pos of block + * @return a IOrientable if applicable + */ + IOrientable getOrientable(IBlockAccess world, int x, int y, int z); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/util/WorldCoord.java b/src/api/java/appeng/api/util/WorldCoord.java index beb43b3c..e09f01ce 100644 --- a/src/api/java/appeng/api/util/WorldCoord.java +++ b/src/api/java/appeng/api/util/WorldCoord.java @@ -119,9 +119,7 @@ public class WorldCoord @Override public boolean equals(Object obj) { - if ( obj instanceof WorldCoord ) - return isEqual( (WorldCoord) obj ); - return false; + return obj instanceof WorldCoord && isEqual((WorldCoord) obj); } @Override diff --git a/src/main/java/crazypants/enderio/conduit/ConduitRecipes.java b/src/main/java/crazypants/enderio/conduit/ConduitRecipes.java index f92151c7..b37d6b1f 100644 --- a/src/main/java/crazypants/enderio/conduit/ConduitRecipes.java +++ b/src/main/java/crazypants/enderio/conduit/ConduitRecipes.java @@ -94,14 +94,8 @@ public class ConduitRecipes { @Method(modid = "appliedenergistics2") private static void addAeRecipes() { String fluix = "crystalFluix"; - Object pureFluix = null; - - try { - pureFluix = AEApi.instance().materials().materialPureifiedFluixCrystal.stack(1).copy(); // rv1 - } catch (NoSuchFieldError e) { - pureFluix = "crystalPureFluix"; // rv2 - } - + String pureFluix = "crystalPureFluix"; + ItemStack quartzFiber = AEApi.instance().parts().partQuartzFiber.stack(1).copy(); ItemStack conduitBinder = new ItemStack(EnderIO.itemMaterial, 1, Material.CONDUIT_BINDER.ordinal()); ItemStack res = new ItemStack(EnderIO.itemMEConduit, Config.numConduitsPerRecipe / 2); diff --git a/src/main/java/crazypants/enderio/conduit/me/MEConduitGrid.java b/src/main/java/crazypants/enderio/conduit/me/MEConduitGrid.java index 8373f0cc..e9430ff7 100644 --- a/src/main/java/crazypants/enderio/conduit/me/MEConduitGrid.java +++ b/src/main/java/crazypants/enderio/conduit/me/MEConduitGrid.java @@ -44,13 +44,8 @@ public class MEConduitGrid implements IGridBlock { public EnumSet getFlags() { return conduit.isDense() ? EnumSet.of(GridFlags.DENSE_CAPACITY) : EnumSet.noneOf(GridFlags.class); } - - @Override - public boolean isWorldAccessable() { - return true; - } - //@Override // dummy method for rv2 + @Override public boolean isWorldAccessible() { return true; } From 19a5fdac052df9c1f8f180537d7d32943471bed0 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 10:43:53 -0500 Subject: [PATCH 05/95] Implement interface hack to support both chisel versions --- .../java/com/cricketcraft/chisel/api/IFacade.java | 12 ++++++++++++ .../enderio/conduit/BlockConduitBundle.java | 3 +-- .../enderio/machine/buffer/BlockBuffer.java | 3 +-- .../machine/painter/BlockPaintedGlowstone.java | 3 +-- .../enderio/teleport/BlockTravelAnchor.java | 3 +-- src/main/java/crazypants/util/IFacade.java | 5 +++++ 6 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 src/main/java/com/cricketcraft/chisel/api/IFacade.java create mode 100644 src/main/java/crazypants/util/IFacade.java diff --git a/src/main/java/com/cricketcraft/chisel/api/IFacade.java b/src/main/java/com/cricketcraft/chisel/api/IFacade.java new file mode 100644 index 00000000..16fa5491 --- /dev/null +++ b/src/main/java/com/cricketcraft/chisel/api/IFacade.java @@ -0,0 +1,12 @@ +package com.cricketcraft.chisel.api; + +import net.minecraft.block.Block; +import net.minecraft.world.IBlockAccess; + +public interface IFacade { + + int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side); + + Block getFacade(IBlockAccess world, int x, int y, int z, int side); + +} diff --git a/src/main/java/crazypants/enderio/conduit/BlockConduitBundle.java b/src/main/java/crazypants/enderio/conduit/BlockConduitBundle.java index 7c6a23df..1bfe6dbd 100644 --- a/src/main/java/crazypants/enderio/conduit/BlockConduitBundle.java +++ b/src/main/java/crazypants/enderio/conduit/BlockConduitBundle.java @@ -1,7 +1,5 @@ package crazypants.enderio.conduit; -import info.jbcs.minecraft.chisel.api.IFacade; - import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -59,6 +57,7 @@ import crazypants.enderio.machine.painter.PainterUtil; import crazypants.enderio.network.PacketHandler; import crazypants.enderio.tool.ToolUtil; import crazypants.render.BoundingBox; +import crazypants.util.IFacade; import crazypants.util.Util; @Optional.Interface(iface = "powercrystals.minefactoryreloaded.api.rednet.IRedNetOmniNode", modid = "MineFactoryReloaded") diff --git a/src/main/java/crazypants/enderio/machine/buffer/BlockBuffer.java b/src/main/java/crazypants/enderio/machine/buffer/BlockBuffer.java index d29d134b..d1f54867 100644 --- a/src/main/java/crazypants/enderio/machine/buffer/BlockBuffer.java +++ b/src/main/java/crazypants/enderio/machine/buffer/BlockBuffer.java @@ -1,7 +1,5 @@ package crazypants.enderio.machine.buffer; -import info.jbcs.minecraft.chisel.api.IFacade; - import java.util.ArrayList; import net.minecraft.block.Block; @@ -27,6 +25,7 @@ import crazypants.enderio.machine.MachineRecipeRegistry; import crazypants.enderio.machine.painter.BasicPainterTemplate; import crazypants.enderio.machine.painter.PainterUtil; import crazypants.enderio.network.PacketHandler; +import crazypants.util.IFacade; public class BlockBuffer extends AbstractMachineBlock implements IFacade { diff --git a/src/main/java/crazypants/enderio/machine/painter/BlockPaintedGlowstone.java b/src/main/java/crazypants/enderio/machine/painter/BlockPaintedGlowstone.java index 7b7ecad1..cc78d715 100644 --- a/src/main/java/crazypants/enderio/machine/painter/BlockPaintedGlowstone.java +++ b/src/main/java/crazypants/enderio/machine/painter/BlockPaintedGlowstone.java @@ -1,7 +1,5 @@ package crazypants.enderio.machine.painter; -import info.jbcs.minecraft.chisel.api.IFacade; - import java.util.List; import java.util.Random; @@ -34,6 +32,7 @@ import crazypants.enderio.EnderIO; import crazypants.enderio.ModObject; import crazypants.enderio.machine.MachineRecipeInput; import crazypants.enderio.machine.MachineRecipeRegistry; +import crazypants.util.IFacade; import crazypants.util.Lang; public class BlockPaintedGlowstone extends Block implements ITileEntityProvider, IPaintedBlock, IFacade { diff --git a/src/main/java/crazypants/enderio/teleport/BlockTravelAnchor.java b/src/main/java/crazypants/enderio/teleport/BlockTravelAnchor.java index f1aaca81..bb3ba3f1 100644 --- a/src/main/java/crazypants/enderio/teleport/BlockTravelAnchor.java +++ b/src/main/java/crazypants/enderio/teleport/BlockTravelAnchor.java @@ -1,7 +1,5 @@ package crazypants.enderio.teleport; -import info.jbcs.minecraft.chisel.api.IFacade; - import java.util.Random; import net.minecraft.block.Block; @@ -36,6 +34,7 @@ import crazypants.enderio.teleport.packet.PacketDrainStaff; import crazypants.enderio.teleport.packet.PacketLabel; import crazypants.enderio.teleport.packet.PacketOpenAuthGui; import crazypants.enderio.teleport.packet.PacketTravelEvent; +import crazypants.util.IFacade; import crazypants.util.Lang; public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEntityProvider, IResourceTooltipProvider, IFacade { diff --git a/src/main/java/crazypants/util/IFacade.java b/src/main/java/crazypants/util/IFacade.java new file mode 100644 index 00000000..adbeb429 --- /dev/null +++ b/src/main/java/crazypants/util/IFacade.java @@ -0,0 +1,5 @@ +package crazypants.util; + +public interface IFacade extends info.jbcs.minecraft.chisel.api.IFacade, com.cricketcraft.chisel.api.IFacade { + // :( +} From e05204f0a6061c0748c4e59534cd3662ed3353e0 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 11:22:48 -0500 Subject: [PATCH 06/95] Remove javadoc jar task in favor of an API jar task --- build.gradle | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 9ca31737..170f9a2d 100644 --- a/build.gradle +++ b/build.gradle @@ -90,9 +90,11 @@ task sourceJar(type: Jar) { classifier = 'sources' } -task javadocJar(type: Jar, dependsOn: javadoc) { - from javadoc.destinationDir - classifier = 'javadoc' +task apiJar(type: Jar) { + from sourceSets.main.allSource + from sourceSets.main.output + include 'crazypants/enderio/api/**/*' + classifier = 'api' } task deobfJar(type: Jar) { @@ -102,7 +104,7 @@ task deobfJar(type: Jar) { classifier = 'dev' } -build.dependsOn sourceJar, deobfJar +build.dependsOn sourceJar, deobfJar, apiJar publishing { tasks.publish.dependsOn 'build' @@ -111,7 +113,7 @@ publishing { from components.java artifact sourceJar - artifact javadocJar + artifact apiJar artifact deobfJar } } From 4f214be55913f824b1ec7210677116a7bee62102 Mon Sep 17 00:00:00 2001 From: hilburn Date: Tue, 30 Dec 2014 17:27:41 +0000 Subject: [PATCH 07/95] Mushroom Farming and fixed some typos getExperiance made my skin crawl --- .../machine/AbstractPoweredTaskEntity.java | 2 +- .../enderio/machine/IMachineRecipe.java | 2 +- .../machine/alloy/VanillaSmeltingRecipe.java | 2 +- .../enderio/machine/farm/FarmersRegistry.java | 2 + .../machine/farm/farmers/TreeFarmer.java | 14 +++++- .../machine/farm/farmers/TreeHarvestUtil.java | 43 +++++++++++++------ .../machine/painter/BasicPainterTemplate.java | 2 +- .../machine/recipe/AbstractMachineRecipe.java | 12 +++--- .../recipe/ManyToOneMachineRecipe.java | 2 +- .../soul/AbstractSoulBinderRecipe.java | 2 +- .../machine/soul/SoulBinderSpawnerRecipe.java | 2 +- .../enderio/machine/spawner/DummyRecipe.java | 2 +- 12 files changed, 57 insertions(+), 30 deletions(-) diff --git a/src/main/java/crazypants/enderio/machine/AbstractPoweredTaskEntity.java b/src/main/java/crazypants/enderio/machine/AbstractPoweredTaskEntity.java index 4856cb3c..65137325 100644 --- a/src/main/java/crazypants/enderio/machine/AbstractPoweredTaskEntity.java +++ b/src/main/java/crazypants/enderio/machine/AbstractPoweredTaskEntity.java @@ -78,7 +78,7 @@ public abstract class AbstractPoweredTaskEntity extends AbstractPowerConsumerEnt if(lastCompletedRecipe == null) { return 0; } - return lastCompletedRecipe.getExperianceForOutput(output); + return lastCompletedRecipe.getExperienceForOutput(output); } public boolean getRedstoneChecksPassed() { diff --git a/src/main/java/crazypants/enderio/machine/IMachineRecipe.java b/src/main/java/crazypants/enderio/machine/IMachineRecipe.java index 0a110aa6..91c2401a 100644 --- a/src/main/java/crazypants/enderio/machine/IMachineRecipe.java +++ b/src/main/java/crazypants/enderio/machine/IMachineRecipe.java @@ -67,7 +67,7 @@ public interface IMachineRecipe { * @param output * @return */ - float getExperianceForOutput(ItemStack output); + float getExperienceForOutput(ItemStack output); /** * Should return true if the specified parameter is can be used in this diff --git a/src/main/java/crazypants/enderio/machine/alloy/VanillaSmeltingRecipe.java b/src/main/java/crazypants/enderio/machine/alloy/VanillaSmeltingRecipe.java index 6ecbd66d..f22ba791 100644 --- a/src/main/java/crazypants/enderio/machine/alloy/VanillaSmeltingRecipe.java +++ b/src/main/java/crazypants/enderio/machine/alloy/VanillaSmeltingRecipe.java @@ -113,7 +113,7 @@ public class VanillaSmeltingRecipe implements IMachineRecipe { } @Override - public float getExperianceForOutput(ItemStack output) { + public float getExperienceForOutput(ItemStack output) { if(output == null) { return 0; } diff --git a/src/main/java/crazypants/enderio/machine/farm/FarmersRegistry.java b/src/main/java/crazypants/enderio/machine/farm/FarmersRegistry.java index aa02207b..b99b56de 100644 --- a/src/main/java/crazypants/enderio/machine/farm/FarmersRegistry.java +++ b/src/main/java/crazypants/enderio/machine/farm/FarmersRegistry.java @@ -27,6 +27,8 @@ public final class FarmersRegistry { FarmersCommune.joinCommune(new StemFarmer(Blocks.cactus, new ItemStack(Blocks.cactus))); FarmersCommune.joinCommune(new TreeFarmer(Blocks.sapling, Blocks.log)); FarmersCommune.joinCommune(new TreeFarmer(Blocks.sapling, Blocks.log2)); + FarmersCommune.joinCommune(new TreeFarmer(true,Blocks.red_mushroom, Blocks.red_mushroom_block)); + FarmersCommune.joinCommune(new TreeFarmer(true,Blocks.brown_mushroom, Blocks.brown_mushroom_block)); //special case of plantables to get spacing correct FarmersCommune.joinCommune(new MelonFarmer(Blocks.melon_stem, Blocks.melon_block, new ItemStack(Items.melon_seeds))); FarmersCommune.joinCommune(new MelonFarmer(Blocks.pumpkin_stem, Blocks.pumpkin, new ItemStack(Items.pumpkin_seeds))); diff --git a/src/main/java/crazypants/enderio/machine/farm/farmers/TreeFarmer.java b/src/main/java/crazypants/enderio/machine/farm/farmers/TreeFarmer.java index 2d781ca8..2949d2fe 100644 --- a/src/main/java/crazypants/enderio/machine/farm/farmers/TreeFarmer.java +++ b/src/main/java/crazypants/enderio/machine/farm/farmers/TreeFarmer.java @@ -26,6 +26,7 @@ public class TreeFarmer implements IFarmerJoe { protected Block[] woods; protected TreeHarvestUtil harvester = new TreeHarvestUtil(); + private boolean ignoreMeta; public TreeFarmer(Block sapling, Block... wood) { this.sapling = sapling; @@ -35,11 +36,16 @@ public class TreeFarmer implements IFarmerJoe { woods = wood; } + public TreeFarmer(boolean ignoreMeta, Block sapling, Block... wood) { + this(sapling,wood); + this.ignoreMeta = ignoreMeta; + } + @Override public boolean canHarvest(TileFarmStation farm, BlockCoord bc, Block block, int meta) { return isWood(block); } - + protected boolean isWood(Block block) { for(Block wood : woods) { if(block == wood) { @@ -144,6 +150,11 @@ public class TreeFarmer implements IFarmerJoe { return res; } + public boolean getIgnoreMeta() + { + return ignoreMeta; + } + private static class HeightComparator implements Comparator { @Override @@ -155,7 +166,6 @@ public class TreeFarmer implements IFarmerJoe { public static int compare(int x, int y) { return (x < y) ? -1 : ((x == y) ? 0 : 1); } - } } diff --git a/src/main/java/crazypants/enderio/machine/farm/farmers/TreeHarvestUtil.java b/src/main/java/crazypants/enderio/machine/farm/farmers/TreeHarvestUtil.java index a952b4d4..cb86311f 100644 --- a/src/main/java/crazypants/enderio/machine/farm/farmers/TreeHarvestUtil.java +++ b/src/main/java/crazypants/enderio/machine/farm/farmers/TreeHarvestUtil.java @@ -1,9 +1,6 @@ package crazypants.enderio.machine.farm.farmers; -import net.minecraft.block.Block; -import net.minecraft.block.BlockLeaves; -import net.minecraft.block.BlockNewLeaf; -import net.minecraft.block.BlockOldLeaf; +import net.minecraft.block.*; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; import crazypants.enderio.machine.farm.TileFarmStation; @@ -27,7 +24,7 @@ public class TreeHarvestUtil { public void harvest(TileFarmStation farm, TreeFarmer farmer, BlockCoord bc, HarvestResult res) { horizontalRange = farm.getFarmSize() + 7; verticalRange = 30; - harvest(farm.getWorldObj(), farm.getLocation(), bc, res); + harvest(farm.getWorldObj(), farm.getLocation(), bc, res, farmer.getIgnoreMeta()); } public void harvest(World world, BlockCoord bc, HarvestResult res) { @@ -39,14 +36,21 @@ public class TreeHarvestUtil { harvestUp(world, bc, res, new HarvestTarget(wood, woodMeta)); } - private void harvest(World world, BlockCoord origin, BlockCoord bc, HarvestResult res) { + private void harvest(World world, BlockCoord origin, BlockCoord bc, HarvestResult res, boolean ignoreMeta) { this.origin = new BlockCoord(origin); Block wood = world.getBlock(bc.x, bc.y, bc.z); int woodMeta = world.getBlockMetadata(bc.x, bc.y, bc.z); - harvestUp(world, bc, res, new HarvestTarget(wood, woodMeta)); + if (ignoreMeta) + { + harvestUp(world, bc, res, new BaseHarvestTarget(wood)); + } + else + { + harvestUp(world, bc, res, new HarvestTarget(wood, woodMeta)); + } } - protected void harvestUp(World world, BlockCoord bc, HarvestResult res, HarvestTarget target) { + protected void harvestUp(World world, BlockCoord bc, HarvestResult res, BaseHarvestTarget target) { if(!isInHarvestBounds(bc) || res.harvestedBlocks.contains(bc)) { return; @@ -78,7 +82,7 @@ public class TreeHarvestUtil { } - private void harvestAdjacentWood(World world, BlockCoord bc, HarvestResult res, HarvestTarget target) { + private void harvestAdjacentWood(World world, BlockCoord bc, HarvestResult res, BaseHarvestTarget target) { for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) { if(dir.offsetY == 0) { BlockCoord loc = bc.getLocation(dir); @@ -107,20 +111,31 @@ public class TreeHarvestUtil { return true; } - private static final class HarvestTarget { - - private final Block wood; + private static final class HarvestTarget extends BaseHarvestTarget + { private final int woodMeta; HarvestTarget(Block wood, int woodMeta) { - this.wood = wood; + super(wood); this.woodMeta = woodMeta; } boolean isTarget(Block blk, int meta) { - return blk == wood && ((meta & 3) == (woodMeta & 3)); + return super.isTarget(blk,meta) && ((meta & 3) == (woodMeta & 3)); + } + } + + private static class BaseHarvestTarget + { + private final Block wood; + + BaseHarvestTarget(Block wood) { + this.wood = wood; } + boolean isTarget(Block blk, int meta) { + return blk == wood; + } } } diff --git a/src/main/java/crazypants/enderio/machine/painter/BasicPainterTemplate.java b/src/main/java/crazypants/enderio/machine/painter/BasicPainterTemplate.java index 03eb17c9..11a20ada 100644 --- a/src/main/java/crazypants/enderio/machine/painter/BasicPainterTemplate.java +++ b/src/main/java/crazypants/enderio/machine/painter/BasicPainterTemplate.java @@ -127,7 +127,7 @@ public abstract class BasicPainterTemplate implements IMachineRecipe { } @Override - public float getExperianceForOutput(ItemStack output) { + public float getExperienceForOutput(ItemStack output) { return 0; } diff --git a/src/main/java/crazypants/enderio/machine/recipe/AbstractMachineRecipe.java b/src/main/java/crazypants/enderio/machine/recipe/AbstractMachineRecipe.java index c497c18b..8484c85d 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/AbstractMachineRecipe.java +++ b/src/main/java/crazypants/enderio/machine/recipe/AbstractMachineRecipe.java @@ -65,13 +65,13 @@ public abstract class AbstractMachineRecipe implements IMachineRecipe { ItemStack availableStack = available.item; ItemStack requiredStack = required.getInput(); - ItemStack comsumedStack = requiredStack.copy(); - comsumedStack.stackSize = Math.min(requiredStack.stackSize, availableStack.stackSize); + ItemStack consumedStack = requiredStack.copy(); + consumedStack.stackSize = Math.min(requiredStack.stackSize, availableStack.stackSize); - requiredStack.stackSize -= comsumedStack.stackSize; - availableStack.stackSize -= comsumedStack.stackSize; + requiredStack.stackSize -= consumedStack.stackSize; + availableStack.stackSize -= consumedStack.stackSize; - consumedInputs.add(new MachineRecipeInput(available.slotNumber, comsumedStack)); + consumedInputs.add(new MachineRecipeInput(available.slotNumber, consumedStack)); if(requiredStack.stackSize <= 0) { //Fully met the requirement @@ -93,7 +93,7 @@ public abstract class AbstractMachineRecipe implements IMachineRecipe { } @Override - public float getExperianceForOutput(ItemStack output) { + public float getExperienceForOutput(ItemStack output) { return 0; } diff --git a/src/main/java/crazypants/enderio/machine/recipe/ManyToOneMachineRecipe.java b/src/main/java/crazypants/enderio/machine/recipe/ManyToOneMachineRecipe.java index 3f6d6041..3b34c516 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/ManyToOneMachineRecipe.java +++ b/src/main/java/crazypants/enderio/machine/recipe/ManyToOneMachineRecipe.java @@ -41,7 +41,7 @@ public class ManyToOneMachineRecipe extends AbstractMachineRecipe { } @Override - public float getExperianceForOutput(ItemStack output) { + public float getExperienceForOutput(ItemStack output) { return recipeManager.getExperianceForOutput(output); } diff --git a/src/main/java/crazypants/enderio/machine/soul/AbstractSoulBinderRecipe.java b/src/main/java/crazypants/enderio/machine/soul/AbstractSoulBinderRecipe.java index 04597ae0..860b4a3f 100644 --- a/src/main/java/crazypants/enderio/machine/soul/AbstractSoulBinderRecipe.java +++ b/src/main/java/crazypants/enderio/machine/soul/AbstractSoulBinderRecipe.java @@ -85,7 +85,7 @@ public abstract class AbstractSoulBinderRecipe implements IMachineRecipe, ISoulB @Override - public float getExperianceForOutput(ItemStack output) { + public float getExperienceForOutput(ItemStack output) { return 0; } diff --git a/src/main/java/crazypants/enderio/machine/soul/SoulBinderSpawnerRecipe.java b/src/main/java/crazypants/enderio/machine/soul/SoulBinderSpawnerRecipe.java index ca69ad1d..4f90ba7d 100644 --- a/src/main/java/crazypants/enderio/machine/soul/SoulBinderSpawnerRecipe.java +++ b/src/main/java/crazypants/enderio/machine/soul/SoulBinderSpawnerRecipe.java @@ -64,7 +64,7 @@ public class SoulBinderSpawnerRecipe implements IMachineRecipe, ISoulBinderRecip } @Override - public float getExperianceForOutput(ItemStack output) { + public float getExperienceForOutput(ItemStack output) { return 0; } diff --git a/src/main/java/crazypants/enderio/machine/spawner/DummyRecipe.java b/src/main/java/crazypants/enderio/machine/spawner/DummyRecipe.java index e03e2678..f3f3444d 100644 --- a/src/main/java/crazypants/enderio/machine/spawner/DummyRecipe.java +++ b/src/main/java/crazypants/enderio/machine/spawner/DummyRecipe.java @@ -32,7 +32,7 @@ public class DummyRecipe implements IMachineRecipe { } @Override - public float getExperianceForOutput(ItemStack output) { + public float getExperienceForOutput(ItemStack output) { return 0; } From 1618afc5be1ea1d4bffb47a2d4a35d81dee3ff45 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 12:36:59 -0500 Subject: [PATCH 08/95] Update release notes --- ReleaseNotes.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 8e9269a7..3e74e149 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -9,6 +9,13 @@ New - Can be painted and has connected textures with Chisel. - #32 Add connected photovoltaic panels. Will now form a multiblock and generate/emit power as a cohesive unit. - Add default recipe for the "Repair" enchant from Thaumcraft +- Add support for old and new chisel versions +- **REMOVE AE2 rv1 SUPPORT COMPLETELY** +- Add farming support for cocoa (hilburn) +- Add farming support for mana beans - disabled by default (hilburn) +- Add a percentage tooltip to the grinding ball remaining bar +- Farm axe detection should now support most modded axes +- Add farming station support for giant mushrooms (hilburn) Changes - #1456 Wireless Charger can be deactivated with redstone @@ -26,6 +33,9 @@ Bugs - #1501 Fix travel anchor dropping in creative - #1445 Fix cap banks refusing to be set to input mode when connected to certain blocks - Fix crash when tons (thousands) of cap banks edited at once. +- #1416 Fix advanced item filter not matching some bees properly (hilburn) +- Fix obelisk hovering item rendering being broken in fast graphics mode +- Fix grinding ball duration bar not rendering sometimes ------------------------------------------------------ Version 2.2.5 From 6dcbe62db231af36e75f91c54cc65dd19f28b292 Mon Sep 17 00:00:00 2001 From: hilburn Date: Tue, 30 Dec 2014 17:58:49 +0000 Subject: [PATCH 09/95] Fixes the Cocoa Farmer to instantly replant --- .../crazypants/enderio/machine/farm/farmers/CocoaFarmer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java b/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java index fd62cad3..6db2447c 100644 --- a/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java +++ b/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java @@ -28,9 +28,9 @@ public class CocoaFarmer extends CustomSeedFarmer @Override protected boolean plant(TileFarmStation farm, World worldObj, BlockCoord bc) { + worldObj.setBlock(bc.x, bc.y, bc.z, Blocks.air, 0, 1 | 2); int dir = getPlantDirection(worldObj,bc); if (dir<0) return false; - worldObj.setBlock(bc.x, bc.y, bc.z, Blocks.air, 0, 1 | 2); worldObj.setBlock(bc.x, bc.y, bc.z, getPlantedBlock(), Direction.facingToDirection[dir], 1 | 2); farm.actionPerformed(false); return true; From cfaa3a9a91f49b922f436fea045461264f9db092 Mon Sep 17 00:00:00 2001 From: hilburn Date: Tue, 30 Dec 2014 18:31:45 +0000 Subject: [PATCH 10/95] CustomSeedFarmer can disable TreeFarmer Only used for cocoa beans currently but might prove useful - if the seed item is in that quadrant it won't chop trees even with an axe --- .../machine/farm/farmers/CocoaFarmer.java | 1 + .../farm/farmers/CustomSeedFarmer.java | 5 +++++ .../machine/farm/farmers/FarmersCommune.java | 20 ++++++++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java b/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java index 6db2447c..964a53fb 100644 --- a/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java +++ b/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java @@ -17,6 +17,7 @@ public class CocoaFarmer extends CustomSeedFarmer { super(Blocks.cocoa, new ItemStack(Items.dye,1,3)); this.requiresFarmland = false; + this.disableTreeFarm = true; } @Override diff --git a/src/main/java/crazypants/enderio/machine/farm/farmers/CustomSeedFarmer.java b/src/main/java/crazypants/enderio/machine/farm/farmers/CustomSeedFarmer.java index 57cf6e1c..f1308e50 100644 --- a/src/main/java/crazypants/enderio/machine/farm/farmers/CustomSeedFarmer.java +++ b/src/main/java/crazypants/enderio/machine/farm/farmers/CustomSeedFarmer.java @@ -22,6 +22,7 @@ public class CustomSeedFarmer implements IFarmerJoe { protected boolean requiresFarmland = true; protected List tilledBlocks = new ArrayList(); protected boolean ignoreSustainCheck = false; + protected boolean disableTreeFarm; public CustomSeedFarmer(Block plantedBlock, ItemStack seeds) { this(plantedBlock, 0, 7, seeds); @@ -207,4 +208,8 @@ public class CustomSeedFarmer implements IFarmerJoe { return false; } + public boolean doesDisableTreeFarm() + { + return disableTreeFarm; + } } diff --git a/src/main/java/crazypants/enderio/machine/farm/farmers/FarmersCommune.java b/src/main/java/crazypants/enderio/machine/farm/farmers/FarmersCommune.java index 74f683db..dcb19be5 100644 --- a/src/main/java/crazypants/enderio/machine/farm/farmers/FarmersCommune.java +++ b/src/main/java/crazypants/enderio/machine/farm/farmers/FarmersCommune.java @@ -16,8 +16,14 @@ import crazypants.util.Lang; public class FarmersCommune implements IFarmerJoe { public static FarmersCommune instance = new FarmersCommune(); + private static List disableTrees = new ArrayList(); public static void joinCommune(IFarmerJoe joe) { + if (joe instanceof CustomSeedFarmer) + { + CustomSeedFarmer customSeedFarmer = (CustomSeedFarmer) joe; + if (customSeedFarmer.doesDisableTreeFarm()) disableTrees.add(customSeedFarmer.getSeeds()); + } instance.farmers.add(joe); } @@ -43,7 +49,8 @@ public class FarmersCommune implements IFarmerJoe { @Override public IHarvestResult harvestBlock(TileFarmStation farm, BlockCoord bc, Block block, int meta) { for (IFarmerJoe joe : farmers) { - if(joe.canHarvest(farm, bc, block, meta)) { + if (ignoreTreeHarvest(farm, bc, joe)) continue; + if (joe.canHarvest(farm, bc, block, meta)) { return joe.harvestBlock(farm, bc, block, meta); } } @@ -69,4 +76,15 @@ public class FarmersCommune implements IFarmerJoe { } return false; } + + private boolean ignoreTreeHarvest(TileFarmStation farm, BlockCoord bc, IFarmerJoe joe) + { + ItemStack stack = farm.getSeedTypeInSuppliesFor(bc); + if (!(joe instanceof TreeFarmer) || stack == null) return false; + for (ItemStack disableTreeStack : disableTrees) + { + if (disableTreeStack.isItemEqual(stack)) return true; + } + return false; + } } From d993cd4cbf150afa935f4d06b20de51e97f2d41e Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 15:18:15 -0500 Subject: [PATCH 11/95] Fix treetaps not being recognized under the new system. --- .../crazypants/enderio/machine/farm/TileFarmStation.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java index c39ea2dc..15dd76aa 100644 --- a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java +++ b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java @@ -53,7 +53,12 @@ public class TileFarmStation extends AbstractPoweredTaskEntity { abstract boolean match(ItemStack item); public static boolean isTool(ItemStack stack) { - return HOE.itemMatches(stack) || AXE.itemMatches(stack); + for (ToolType type : values()) { + if (type.itemMatches(stack)) { + return true; + } + } + return false; } } From c49a2f133af3a3ef98a3b868e4899be307a34782 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 15:21:07 -0500 Subject: [PATCH 12/95] Fix formatting in rv2 API ??? idk --- .../java/appeng/api/config/ModSettings.java | 12 +- src/api/java/appeng/api/config/Settings.java | 92 ++--- .../java/appeng/api/config/TunnelType.java | 30 +- .../exceptions/MissingIngredientError.java | 22 +- .../api/exceptions/ModNotInstalled.java | 24 +- .../appeng/api/exceptions/RecipeError.java | 24 +- .../api/features/INetworkEncodable.java | 54 +-- .../api/features/IRecipeHandlerRegistry.java | 98 ++--- .../implementations/guiobjects/IGuiItem.java | 30 +- .../guiobjects/IGuiItemObject.java | 18 +- .../guiobjects/INetworkTool.java | 28 +- .../guiobjects/IPortableCell.java | 28 +- .../tiles/ITileStorageMonitorable.java | 30 +- .../tiles/IWirelessAccessPoint.java | 60 +-- .../api/integration/IBeeComparison.java | 36 +- .../java/appeng/api/networking/GridFlags.java | 90 ++--- .../api/networking/GridNotification.java | 18 +- src/api/java/appeng/api/networking/IGrid.java | 142 +++---- .../appeng/api/networking/IGridBlock.java | 178 ++++----- .../appeng/api/networking/IGridCache.java | 142 +++---- .../api/networking/IGridCacheRegistry.java | 54 +-- .../api/networking/IGridConnection.java | 114 +++--- .../java/appeng/api/networking/IGridHost.java | 86 ++--- .../java/appeng/api/networking/IGridNode.java | 280 +++++++------- .../appeng/api/networking/IGridVisitor.java | 42 +-- .../api/networking/energy/IEnergyGrid.java | 164 ++++---- .../energy/IEnergyGridProvider.java | 56 +-- .../MENetworkPostCacheConstruction.java | 20 +- .../api/networking/pathing/IPathingGrid.java | 46 +-- .../api/networking/storage/IStorageGrid.java | 90 ++--- .../api/networking/ticking/IGridTickable.java | 112 +++--- .../api/networking/ticking/ITickManager.java | 88 ++--- .../ticking/TickRateModulation.java | 68 ++-- .../networking/ticking/TickingRequest.java | 108 +++--- src/api/java/appeng/api/package-info.java | 10 +- src/api/java/appeng/api/parts/BusSupport.java | 20 +- .../appeng/api/parts/IFacadeContainer.java | 150 ++++---- .../java/appeng/api/parts/IFacadePart.java | 152 ++++---- src/api/java/appeng/api/parts/IPartHost.java | 302 +++++++-------- .../java/appeng/api/parts/PartItemStack.java | 28 +- .../java/appeng/api/recipes/IIngredient.java | 128 +++---- .../appeng/api/storage/StorageChannel.java | 66 ++-- .../appeng/api/storage/data/IAEStack.java | 356 +++++++++--------- src/api/java/appeng/api/util/AECableType.java | 60 +-- src/api/java/appeng/api/util/AEColor.java | 176 ++++----- .../api/util/AEColoredItemDefinition.java | 94 ++--- .../appeng/api/util/AEItemDefinition.java | 108 +++--- src/api/java/appeng/api/util/ICommonTile.java | 44 +-- .../appeng/api/util/IOrientableBlock.java | 48 +-- 49 files changed, 2113 insertions(+), 2113 deletions(-) diff --git a/src/api/java/appeng/api/config/ModSettings.java b/src/api/java/appeng/api/config/ModSettings.java index 84fe79f3..9b578dc0 100644 --- a/src/api/java/appeng/api/config/ModSettings.java +++ b/src/api/java/appeng/api/config/ModSettings.java @@ -1,6 +1,6 @@ -package appeng.api.config; - -public enum ModSettings -{ - -} +package appeng.api.config; + +public enum ModSettings +{ + +} diff --git a/src/api/java/appeng/api/config/Settings.java b/src/api/java/appeng/api/config/Settings.java index 1f15b86a..691ad807 100644 --- a/src/api/java/appeng/api/config/Settings.java +++ b/src/api/java/appeng/api/config/Settings.java @@ -1,46 +1,46 @@ -package appeng.api.config; - -import java.util.EnumSet; - -public enum Settings -{ - LEVEL_EMITTER_MODE(EnumSet.allOf( LevelEmitterMode.class )), - - REDSTONE_EMITTER(EnumSet.of( RedstoneMode.HIGH_SIGNAL, RedstoneMode.LOW_SIGNAL )), REDSTONE_CONTROLLED(EnumSet.allOf( RedstoneMode.class )), - - CONDENSER_OUTPUT(EnumSet.allOf( CondenserOutput.class )), - - POWER_UNITS(EnumSet.allOf( PowerUnits.class )), ACCESS(EnumSet.of( AccessRestriction.READ_WRITE, AccessRestriction.READ, AccessRestriction.WRITE )), - - SORT_DIRECTION(EnumSet.allOf( SortDir.class )), SORT_BY(EnumSet.allOf( SortOrder.class )), - - SEARCH_TOOLTIPS(EnumSet.of( YesNo.YES, YesNo.NO )), VIEW_MODE(EnumSet.allOf( ViewItems.class )), SEARCH_MODE(EnumSet.allOf( SearchBoxMode.class )), - - ACTIONS(EnumSet.allOf( ActionItems.class )), IO_DIRECTION(EnumSet.of( RelativeDirection.LEFT, RelativeDirection.RIGHT )), - - BLOCK(EnumSet.of( YesNo.YES, YesNo.NO )), OPERATION_MODE(EnumSet.allOf( OperationMode.class )), - - FULLNESS_MODE(EnumSet.allOf( FullnessMode.class )), CRAFT_ONLY(EnumSet.of( YesNo.YES, YesNo.NO )), - - FUZZY_MODE(EnumSet.allOf( FuzzyMode.class )), LEVEL_TYPE(EnumSet.allOf( LevelType.class )), - - TERMINAL_STYLE(EnumSet.of( TerminalStyle.TALL, TerminalStyle.SMALL )), COPY_MODE(EnumSet.allOf( CopyMode.class )), - - INTERFACE_TERMINAL(EnumSet.of( YesNo.YES, YesNo.NO )), CRAFT_VIA_REDSTONE(EnumSet.of( YesNo.YES, YesNo.NO )), - - STORAGE_FILTER(EnumSet.allOf( StorageFilter.class )); - - private EnumSet values; - - public EnumSet getPossibleValues() - { - return values; - } - - private Settings(EnumSet set) { - if ( set == null || set.isEmpty() ) - throw new RuntimeException( "Invalid configuration." ); - values = set; - } - -} +package appeng.api.config; + +import java.util.EnumSet; + +public enum Settings +{ + LEVEL_EMITTER_MODE(EnumSet.allOf( LevelEmitterMode.class )), + + REDSTONE_EMITTER(EnumSet.of( RedstoneMode.HIGH_SIGNAL, RedstoneMode.LOW_SIGNAL )), REDSTONE_CONTROLLED(EnumSet.allOf( RedstoneMode.class )), + + CONDENSER_OUTPUT(EnumSet.allOf( CondenserOutput.class )), + + POWER_UNITS(EnumSet.allOf( PowerUnits.class )), ACCESS(EnumSet.of( AccessRestriction.READ_WRITE, AccessRestriction.READ, AccessRestriction.WRITE )), + + SORT_DIRECTION(EnumSet.allOf( SortDir.class )), SORT_BY(EnumSet.allOf( SortOrder.class )), + + SEARCH_TOOLTIPS(EnumSet.of( YesNo.YES, YesNo.NO )), VIEW_MODE(EnumSet.allOf( ViewItems.class )), SEARCH_MODE(EnumSet.allOf( SearchBoxMode.class )), + + ACTIONS(EnumSet.allOf( ActionItems.class )), IO_DIRECTION(EnumSet.of( RelativeDirection.LEFT, RelativeDirection.RIGHT )), + + BLOCK(EnumSet.of( YesNo.YES, YesNo.NO )), OPERATION_MODE(EnumSet.allOf( OperationMode.class )), + + FULLNESS_MODE(EnumSet.allOf( FullnessMode.class )), CRAFT_ONLY(EnumSet.of( YesNo.YES, YesNo.NO )), + + FUZZY_MODE(EnumSet.allOf( FuzzyMode.class )), LEVEL_TYPE(EnumSet.allOf( LevelType.class )), + + TERMINAL_STYLE(EnumSet.of( TerminalStyle.TALL, TerminalStyle.SMALL )), COPY_MODE(EnumSet.allOf( CopyMode.class )), + + INTERFACE_TERMINAL(EnumSet.of( YesNo.YES, YesNo.NO )), CRAFT_VIA_REDSTONE(EnumSet.of( YesNo.YES, YesNo.NO )), + + STORAGE_FILTER(EnumSet.allOf( StorageFilter.class )); + + private EnumSet values; + + public EnumSet getPossibleValues() + { + return values; + } + + private Settings(EnumSet set) { + if ( set == null || set.isEmpty() ) + throw new RuntimeException( "Invalid configuration." ); + values = set; + } + +} diff --git a/src/api/java/appeng/api/config/TunnelType.java b/src/api/java/appeng/api/config/TunnelType.java index 595b19d7..f45b9874 100644 --- a/src/api/java/appeng/api/config/TunnelType.java +++ b/src/api/java/appeng/api/config/TunnelType.java @@ -1,15 +1,15 @@ -package appeng.api.config; - -public enum TunnelType -{ - ME, // Network Tunnel - BC_POWER, // MJ Tunnel - IC2_POWER, // EU Tunnel - RF_POWER, // RF Tunnel - REDSTONE, // Redstone Tunnel - FLUID, // Fluid Tunnel - ITEM, // Item Tunnel - LIGHT, // Light Tunnel - BUNDLED_REDSTONE, // Bundled Redstone Tunnel - COMPUTER_MESSAGE // Computer Message Tunnel -} +package appeng.api.config; + +public enum TunnelType +{ + ME, // Network Tunnel + BC_POWER, // MJ Tunnel + IC2_POWER, // EU Tunnel + RF_POWER, // RF Tunnel + REDSTONE, // Redstone Tunnel + FLUID, // Fluid Tunnel + ITEM, // Item Tunnel + LIGHT, // Light Tunnel + BUNDLED_REDSTONE, // Bundled Redstone Tunnel + COMPUTER_MESSAGE // Computer Message Tunnel +} diff --git a/src/api/java/appeng/api/exceptions/MissingIngredientError.java b/src/api/java/appeng/api/exceptions/MissingIngredientError.java index 9dcdda55..51a200a0 100644 --- a/src/api/java/appeng/api/exceptions/MissingIngredientError.java +++ b/src/api/java/appeng/api/exceptions/MissingIngredientError.java @@ -1,11 +1,11 @@ -package appeng.api.exceptions; - -public class MissingIngredientError extends Exception { - - private static final long serialVersionUID = -998858343831371697L; - - public MissingIngredientError(String n) { - super( n ); - } - -} +package appeng.api.exceptions; + +public class MissingIngredientError extends Exception { + + private static final long serialVersionUID = -998858343831371697L; + + public MissingIngredientError(String n) { + super( n ); + } + +} diff --git a/src/api/java/appeng/api/exceptions/ModNotInstalled.java b/src/api/java/appeng/api/exceptions/ModNotInstalled.java index 425e7aa4..7744a1fb 100644 --- a/src/api/java/appeng/api/exceptions/ModNotInstalled.java +++ b/src/api/java/appeng/api/exceptions/ModNotInstalled.java @@ -1,12 +1,12 @@ -package appeng.api.exceptions; - -public class ModNotInstalled extends Exception -{ - - private static final long serialVersionUID = -9052435206368425494L; - - public ModNotInstalled(String t) { - super( t ); - } - -} +package appeng.api.exceptions; + +public class ModNotInstalled extends Exception +{ + + private static final long serialVersionUID = -9052435206368425494L; + + public ModNotInstalled(String t) { + super( t ); + } + +} diff --git a/src/api/java/appeng/api/exceptions/RecipeError.java b/src/api/java/appeng/api/exceptions/RecipeError.java index df0a976b..a07f6438 100644 --- a/src/api/java/appeng/api/exceptions/RecipeError.java +++ b/src/api/java/appeng/api/exceptions/RecipeError.java @@ -1,12 +1,12 @@ -package appeng.api.exceptions; - -public class RecipeError extends Exception -{ - - private static final long serialVersionUID = -6602870588617670262L; - - public RecipeError(String n) { - super( n ); - } - -} +package appeng.api.exceptions; + +public class RecipeError extends Exception +{ + + private static final long serialVersionUID = -6602870588617670262L; + + public RecipeError(String n) { + super( n ); + } + +} diff --git a/src/api/java/appeng/api/features/INetworkEncodable.java b/src/api/java/appeng/api/features/INetworkEncodable.java index 2b096d61..2fa66bf9 100644 --- a/src/api/java/appeng/api/features/INetworkEncodable.java +++ b/src/api/java/appeng/api/features/INetworkEncodable.java @@ -1,27 +1,27 @@ -package appeng.api.features; - -import net.minecraft.item.ItemStack; - -public interface INetworkEncodable { - - /** - * Used to get the current key from the item. - * - * @param item item - * @return string key of item - */ - 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); - -} +package appeng.api.features; + +import net.minecraft.item.ItemStack; + +public interface INetworkEncodable { + + /** + * Used to get the current key from the item. + * + * @param item item + * @return string key of item + */ + 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); + +} diff --git a/src/api/java/appeng/api/features/IRecipeHandlerRegistry.java b/src/api/java/appeng/api/features/IRecipeHandlerRegistry.java index be43a544..ee8324bb 100644 --- a/src/api/java/appeng/api/features/IRecipeHandlerRegistry.java +++ b/src/api/java/appeng/api/features/IRecipeHandlerRegistry.java @@ -1,49 +1,49 @@ -package appeng.api.features; - -import appeng.api.recipes.ICraftHandler; -import appeng.api.recipes.IRecipeHandler; -import appeng.api.recipes.ISubItemResolver; - -public interface IRecipeHandlerRegistry -{ - - /** - * Add a new Recipe Handler to the parser. - * - * MUST BE CALLED IN PRE-INIT - * - * @param name name of crafthandler - * @param handler class of crafthandler - */ - void addNewCraftHandler(String name, Class handler); - - /** - * Add a new resolver to the parser. - * - * MUST BE CALLED IN PRE-INIT - * - * @param sir sub item resolver - */ - void addNewSubItemResolver(ISubItemResolver sir); - - /** - * @param name name of crafting handler - * @return A recipe handler by name, returns null on failure. - */ - ICraftHandler getCraftHandlerFor(String name); - - /** - * @return a new recipe handler, which can be used to parse, and read recipe files. - */ - public IRecipeHandler createNewRecipehandler(); - - /** - * resolve sub items by name. - * - * @param nameSpace namespace of item - * @param itemName full name of item - * @return ResolverResult or ResolverResultSet - */ - Object resolveItem(String nameSpace, String itemName); - -} +package appeng.api.features; + +import appeng.api.recipes.ICraftHandler; +import appeng.api.recipes.IRecipeHandler; +import appeng.api.recipes.ISubItemResolver; + +public interface IRecipeHandlerRegistry +{ + + /** + * Add a new Recipe Handler to the parser. + * + * MUST BE CALLED IN PRE-INIT + * + * @param name name of crafthandler + * @param handler class of crafthandler + */ + void addNewCraftHandler(String name, Class handler); + + /** + * Add a new resolver to the parser. + * + * MUST BE CALLED IN PRE-INIT + * + * @param sir sub item resolver + */ + void addNewSubItemResolver(ISubItemResolver sir); + + /** + * @param name name of crafting handler + * @return A recipe handler by name, returns null on failure. + */ + ICraftHandler getCraftHandlerFor(String name); + + /** + * @return a new recipe handler, which can be used to parse, and read recipe files. + */ + public IRecipeHandler createNewRecipehandler(); + + /** + * resolve sub items by name. + * + * @param nameSpace namespace of item + * @param itemName full name of item + * @return ResolverResult or ResolverResultSet + */ + Object resolveItem(String nameSpace, String itemName); + +} diff --git a/src/api/java/appeng/api/implementations/guiobjects/IGuiItem.java b/src/api/java/appeng/api/implementations/guiobjects/IGuiItem.java index 436bd301..5ee7a832 100644 --- a/src/api/java/appeng/api/implementations/guiobjects/IGuiItem.java +++ b/src/api/java/appeng/api/implementations/guiobjects/IGuiItem.java @@ -1,15 +1,15 @@ -package appeng.api.implementations.guiobjects; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -/** - * Implemented on Item objects, to return objects used to manage, and interact - * with the contents. - */ -public interface IGuiItem -{ - - IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z); - -} +package appeng.api.implementations.guiobjects; + +import net.minecraft.item.ItemStack; +import net.minecraft.world.World; + +/** + * Implemented on Item objects, to return objects used to manage, and interact + * with the contents. + */ +public interface IGuiItem +{ + + IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z); + +} diff --git a/src/api/java/appeng/api/implementations/guiobjects/IGuiItemObject.java b/src/api/java/appeng/api/implementations/guiobjects/IGuiItemObject.java index 95a18edf..1b1dfe64 100644 --- a/src/api/java/appeng/api/implementations/guiobjects/IGuiItemObject.java +++ b/src/api/java/appeng/api/implementations/guiobjects/IGuiItemObject.java @@ -1,9 +1,9 @@ -package appeng.api.implementations.guiobjects; - -import net.minecraft.item.ItemStack; - -public interface IGuiItemObject -{ - - public ItemStack getItemStack(); -} +package appeng.api.implementations.guiobjects; + +import net.minecraft.item.ItemStack; + +public interface IGuiItemObject +{ + + public ItemStack getItemStack(); +} diff --git a/src/api/java/appeng/api/implementations/guiobjects/INetworkTool.java b/src/api/java/appeng/api/implementations/guiobjects/INetworkTool.java index f0265f34..b4d19999 100644 --- a/src/api/java/appeng/api/implementations/guiobjects/INetworkTool.java +++ b/src/api/java/appeng/api/implementations/guiobjects/INetworkTool.java @@ -1,14 +1,14 @@ -package appeng.api.implementations.guiobjects; - -import net.minecraft.inventory.IInventory; -import appeng.api.networking.IGridHost; - -/** - * Obtained via {@link IGuiItem} getGuiObject - */ -public interface INetworkTool extends IInventory, IGuiItemObject -{ - - IGridHost getGridHost(); // null for most purposes. - -} +package appeng.api.implementations.guiobjects; + +import net.minecraft.inventory.IInventory; +import appeng.api.networking.IGridHost; + +/** + * Obtained via {@link IGuiItem} getGuiObject + */ +public interface INetworkTool extends IInventory, IGuiItemObject +{ + + IGridHost getGridHost(); // null for most purposes. + +} diff --git a/src/api/java/appeng/api/implementations/guiobjects/IPortableCell.java b/src/api/java/appeng/api/implementations/guiobjects/IPortableCell.java index b1244013..779e741c 100644 --- a/src/api/java/appeng/api/implementations/guiobjects/IPortableCell.java +++ b/src/api/java/appeng/api/implementations/guiobjects/IPortableCell.java @@ -1,14 +1,14 @@ -package appeng.api.implementations.guiobjects; - -import appeng.api.networking.energy.IEnergySource; -import appeng.api.storage.IMEMonitor; -import appeng.api.storage.ITerminalHost; -import appeng.api.storage.data.IAEItemStack; - -/** - * Obtained via {@link IGuiItem} getGuiObject - */ -public interface IPortableCell extends ITerminalHost, IMEMonitor, IEnergySource, IGuiItemObject -{ - -} +package appeng.api.implementations.guiobjects; + +import appeng.api.networking.energy.IEnergySource; +import appeng.api.storage.IMEMonitor; +import appeng.api.storage.ITerminalHost; +import appeng.api.storage.data.IAEItemStack; + +/** + * Obtained via {@link IGuiItem} getGuiObject + */ +public interface IPortableCell extends ITerminalHost, IMEMonitor, IEnergySource, IGuiItemObject +{ + +} diff --git a/src/api/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java b/src/api/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java index 943c052e..f6ef62fb 100644 --- a/src/api/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java +++ b/src/api/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java @@ -1,15 +1,15 @@ -package appeng.api.implementations.tiles; - -import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.networking.security.BaseActionSource; -import appeng.api.storage.IStorageMonitorable; - -/** - * Implemented on inventories that can share their inventories with other networks, best example, ME Interface. - */ -public interface ITileStorageMonitorable -{ - - IStorageMonitorable getMonitorable(ForgeDirection side, BaseActionSource src); - -} +package appeng.api.implementations.tiles; + +import net.minecraftforge.common.util.ForgeDirection; +import appeng.api.networking.security.BaseActionSource; +import appeng.api.storage.IStorageMonitorable; + +/** + * Implemented on inventories that can share their inventories with other networks, best example, ME Interface. + */ +public interface ITileStorageMonitorable +{ + + IStorageMonitorable getMonitorable(ForgeDirection side, BaseActionSource src); + +} diff --git a/src/api/java/appeng/api/implementations/tiles/IWirelessAccessPoint.java b/src/api/java/appeng/api/implementations/tiles/IWirelessAccessPoint.java index 658c1e25..bd9ed9a0 100644 --- a/src/api/java/appeng/api/implementations/tiles/IWirelessAccessPoint.java +++ b/src/api/java/appeng/api/implementations/tiles/IWirelessAccessPoint.java @@ -1,30 +1,30 @@ -package appeng.api.implementations.tiles; - -import appeng.api.networking.IGrid; -import appeng.api.networking.security.IActionHost; -import appeng.api.util.DimensionalCoord; - -public interface IWirelessAccessPoint extends IActionHost -{ - - /** - * @return location of WAP - */ - DimensionalCoord getLocation(); - - /** - * @return max range for this WAP - */ - double getRange(); - - /** - * @return can you use this WAP? - */ - boolean isActive(); - - /** - * @return grid of linked WAP - */ - IGrid getGrid(); - -} +package appeng.api.implementations.tiles; + +import appeng.api.networking.IGrid; +import appeng.api.networking.security.IActionHost; +import appeng.api.util.DimensionalCoord; + +public interface IWirelessAccessPoint extends IActionHost +{ + + /** + * @return location of WAP + */ + DimensionalCoord getLocation(); + + /** + * @return max range for this WAP + */ + double getRange(); + + /** + * @return can you use this WAP? + */ + boolean isActive(); + + /** + * @return grid of linked WAP + */ + IGrid getGrid(); + +} diff --git a/src/api/java/appeng/api/integration/IBeeComparison.java b/src/api/java/appeng/api/integration/IBeeComparison.java index ab515e6d..ab1ccb44 100644 --- a/src/api/java/appeng/api/integration/IBeeComparison.java +++ b/src/api/java/appeng/api/integration/IBeeComparison.java @@ -1,20 +1,20 @@ package appeng.api.integration; - -/** - * An interface to get access to the individual settings for AE's Internal Bee - * Comparison handler. - * - * Assessable via: ( IBeeComparison ) - * IAEItemStack.getTagCompound().getSpecialComparison() - * - * If you don't have the forestry API, just delete this file when using the API. - */ -public interface IBeeComparison -{ - - /** - * @return the Forestry IIndividual for this comparison object - cast this to a IIndividual if you want to use it. - */ - Object getIndividual(); - + +/** + * An interface to get access to the individual settings for AE's Internal Bee + * Comparison handler. + * + * Assessable via: ( IBeeComparison ) + * IAEItemStack.getTagCompound().getSpecialComparison() + * + * If you don't have the forestry API, just delete this file when using the API. + */ +public interface IBeeComparison +{ + + /** + * @return the Forestry IIndividual for this comparison object - cast this to a IIndividual if you want to use it. + */ + Object getIndividual(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/networking/GridFlags.java b/src/api/java/appeng/api/networking/GridFlags.java index 3a92bbb1..6351ee95 100644 --- a/src/api/java/appeng/api/networking/GridFlags.java +++ b/src/api/java/appeng/api/networking/GridFlags.java @@ -1,45 +1,45 @@ -package appeng.api.networking; - -/** - * Various flags to determine network node behavior. - */ -public enum GridFlags -{ - /** - * import/export buses, terminals, and other devices that use network features, will use this setting. - */ - REQUIRE_CHANNEL, - - /** - * P2P ME tunnels use this setting. - */ - COMPRESSED_CHANNEL, - - /** - * cannot carry channels over this node. - */ - CANNOT_CARRY, - - /** - * Used by P2P Tunnels to prevent tunnels from tunneling recursively. - */ - CANNOT_CARRY_COMPRESSED, - - /** - * This node can transmit 32 signals, this should only apply to Tier2 Cable, P2P Tunnels, and Quantum Network - * Bridges. - */ - DENSE_CAPACITY, - - /** - * This block is part of a multiblock, used in conjunction with REQUIRE_CHANNEL, and {@link IGridMultiblock} see this - * interface for details. - */ - MULTIBLOCK, - - /** - * Indicates which path might be preferred, this only matters if two routes of equal length exist, ad only changes - * the order they are processed in. - */ - PREFERRED -} +package appeng.api.networking; + +/** + * Various flags to determine network node behavior. + */ +public enum GridFlags +{ + /** + * import/export buses, terminals, and other devices that use network features, will use this setting. + */ + REQUIRE_CHANNEL, + + /** + * P2P ME tunnels use this setting. + */ + COMPRESSED_CHANNEL, + + /** + * cannot carry channels over this node. + */ + CANNOT_CARRY, + + /** + * Used by P2P Tunnels to prevent tunnels from tunneling recursively. + */ + CANNOT_CARRY_COMPRESSED, + + /** + * This node can transmit 32 signals, this should only apply to Tier2 Cable, P2P Tunnels, and Quantum Network + * Bridges. + */ + DENSE_CAPACITY, + + /** + * This block is part of a multiblock, used in conjunction with REQUIRE_CHANNEL, and {@link IGridMultiblock} see this + * interface for details. + */ + MULTIBLOCK, + + /** + * Indicates which path might be preferred, this only matters if two routes of equal length exist, ad only changes + * the order they are processed in. + */ + PREFERRED +} diff --git a/src/api/java/appeng/api/networking/GridNotification.java b/src/api/java/appeng/api/networking/GridNotification.java index 5a46fb43..78c4d19d 100644 --- a/src/api/java/appeng/api/networking/GridNotification.java +++ b/src/api/java/appeng/api/networking/GridNotification.java @@ -1,9 +1,9 @@ -package appeng.api.networking; - -public enum GridNotification -{ - /** - * the visible connections for this node have changed, useful for cable. - */ - ConnectionsChanged, -} +package appeng.api.networking; + +public enum GridNotification +{ + /** + * the visible connections for this node have changed, useful for cable. + */ + ConnectionsChanged, +} diff --git a/src/api/java/appeng/api/networking/IGrid.java b/src/api/java/appeng/api/networking/IGrid.java index 1751e67e..72c61154 100644 --- a/src/api/java/appeng/api/networking/IGrid.java +++ b/src/api/java/appeng/api/networking/IGrid.java @@ -1,71 +1,71 @@ -package appeng.api.networking; - -import appeng.api.networking.events.MENetworkEvent; -import appeng.api.util.IReadOnlyCollection; - -/** - * Gives you access to Grid based information. - * - * Don't Implement. - */ -public interface IGrid -{ - - /** - * Get Access to various grid modules - * - * @param iface face - * @return the IGridCache you requested. - */ - public C getCache(Class iface); - - /** - * Post an event into the network event bus. - * - * @param ev - * - event to post - * @return returns ev back to original poster - */ - public MENetworkEvent postEvent(MENetworkEvent ev); - - /** - * Post an event into the network event bus, but direct it at a single node. - * - * @param ev - * event to post - * @return returns ev back to original poster - */ - public MENetworkEvent postEventTo(IGridNode node, MENetworkEvent ev); - - /** - * get a list of the diversity of classes, you can use this to better detect which machines your interested in, - * rather then iterating the entire grid to test them. - * - * @return IReadOnlyCollection of all available host types (Of Type IGridHost). - */ - public IReadOnlyCollection> getMachinesClasses(); - - /** - * Get machines on the network. - * - * @param gridHostClass class of the grid host - * @return IMachineSet of all nodes belonging to hosts of specified class. - */ - public IMachineSet getMachines(Class gridHostClass); - - /** - * @return IReadOnlyCollection for all nodes on the network, node visitors are preferred. - */ - IReadOnlyCollection getNodes(); - - /** - * @return true if the last node has been removed from the grid. - */ - public boolean isEmpty(); - - /** - * @return the node considered the pivot point of the grid. - */ - public IGridNode getPivot(); - -} +package appeng.api.networking; + +import appeng.api.networking.events.MENetworkEvent; +import appeng.api.util.IReadOnlyCollection; + +/** + * Gives you access to Grid based information. + * + * Don't Implement. + */ +public interface IGrid +{ + + /** + * Get Access to various grid modules + * + * @param iface face + * @return the IGridCache you requested. + */ + public C getCache(Class iface); + + /** + * Post an event into the network event bus. + * + * @param ev + * - event to post + * @return returns ev back to original poster + */ + public MENetworkEvent postEvent(MENetworkEvent ev); + + /** + * Post an event into the network event bus, but direct it at a single node. + * + * @param ev + * event to post + * @return returns ev back to original poster + */ + public MENetworkEvent postEventTo(IGridNode node, MENetworkEvent ev); + + /** + * get a list of the diversity of classes, you can use this to better detect which machines your interested in, + * rather then iterating the entire grid to test them. + * + * @return IReadOnlyCollection of all available host types (Of Type IGridHost). + */ + public IReadOnlyCollection> getMachinesClasses(); + + /** + * Get machines on the network. + * + * @param gridHostClass class of the grid host + * @return IMachineSet of all nodes belonging to hosts of specified class. + */ + public IMachineSet getMachines(Class gridHostClass); + + /** + * @return IReadOnlyCollection for all nodes on the network, node visitors are preferred. + */ + IReadOnlyCollection getNodes(); + + /** + * @return true if the last node has been removed from the grid. + */ + public boolean isEmpty(); + + /** + * @return the node considered the pivot point of the grid. + */ + public IGridNode getPivot(); + +} diff --git a/src/api/java/appeng/api/networking/IGridBlock.java b/src/api/java/appeng/api/networking/IGridBlock.java index 379d2f0d..a8d7df17 100644 --- a/src/api/java/appeng/api/networking/IGridBlock.java +++ b/src/api/java/appeng/api/networking/IGridBlock.java @@ -1,89 +1,89 @@ -package appeng.api.networking; - -import appeng.api.parts.IPart; -import appeng.api.util.AEColor; -import appeng.api.util.DimensionalCoord; -import net.minecraft.item.ItemStack; -import net.minecraftforge.common.util.ForgeDirection; - -import java.util.EnumSet; - -/** - * An Implementation is required to create your node for IGridHost - * - * Implement for use with IGridHost - */ -public interface IGridBlock -{ - - /** - * how much power to drain per tick as part of idle network usage. - * - * if the value of this changes, you must post a MENetworkPowerIdleChange - * - * @return ae/t to use. - */ - double getIdlePowerUsage(); - - /** - * Various flags that AE uses to modify basic behavior for various parts of the network. - * - * @return Set of flags for this IGridBlock - */ - EnumSet getFlags(); - - /** - * generally speaking you will return true for this, the one exception is buses, or worm holes where the node - * represents something that isn't a real connection in the world, but rather one represented internally to the - * block. - * - * @return if the world can connect to this node, and the node can connect to the world. - */ - boolean isWorldAccessible(); - - /** - * @return current location of this node - */ - DimensionalCoord getLocation(); - - /** - * @return Transparent, or a valid color, NULL IS NOT A VALID RETURN - */ - AEColor getGridColor(); - - /** - * Notifies your IGridBlock that changes were made to your connections - */ - void onGridNotification(GridNotification notification); - - /** - * Update Blocks network/connection/booting status. grid, - * - * @param grid grid - * @param channelsInUse used channels - */ - public void setNetworkStatus(IGrid grid, int channelsInUse); - - /** - * Determine which sides of the block can be connected too, only used when isWorldAccessible returns true, not used - * for {@link IPart} implementations. - */ - EnumSet getConnectableSides(); - - /** - * @return the IGridHost for the node, this will be an IGridPart or a TileEntity generally speaking. - */ - IGridHost getMachine(); - - /** - * called when the grid for the node has changed, the general grid state should not be trusted at this point. - */ - void gridChanged(); - - /** - * Determines what item stack is used to render this node in the GUI. - * - * @return the render item stack to use to render this node, null is valid, and will not show this node. - */ - public ItemStack getMachineRepresentation(); -} +package appeng.api.networking; + +import appeng.api.parts.IPart; +import appeng.api.util.AEColor; +import appeng.api.util.DimensionalCoord; +import net.minecraft.item.ItemStack; +import net.minecraftforge.common.util.ForgeDirection; + +import java.util.EnumSet; + +/** + * An Implementation is required to create your node for IGridHost + * + * Implement for use with IGridHost + */ +public interface IGridBlock +{ + + /** + * how much power to drain per tick as part of idle network usage. + * + * if the value of this changes, you must post a MENetworkPowerIdleChange + * + * @return ae/t to use. + */ + double getIdlePowerUsage(); + + /** + * Various flags that AE uses to modify basic behavior for various parts of the network. + * + * @return Set of flags for this IGridBlock + */ + EnumSet getFlags(); + + /** + * generally speaking you will return true for this, the one exception is buses, or worm holes where the node + * represents something that isn't a real connection in the world, but rather one represented internally to the + * block. + * + * @return if the world can connect to this node, and the node can connect to the world. + */ + boolean isWorldAccessible(); + + /** + * @return current location of this node + */ + DimensionalCoord getLocation(); + + /** + * @return Transparent, or a valid color, NULL IS NOT A VALID RETURN + */ + AEColor getGridColor(); + + /** + * Notifies your IGridBlock that changes were made to your connections + */ + void onGridNotification(GridNotification notification); + + /** + * Update Blocks network/connection/booting status. grid, + * + * @param grid grid + * @param channelsInUse used channels + */ + public void setNetworkStatus(IGrid grid, int channelsInUse); + + /** + * Determine which sides of the block can be connected too, only used when isWorldAccessible returns true, not used + * for {@link IPart} implementations. + */ + EnumSet getConnectableSides(); + + /** + * @return the IGridHost for the node, this will be an IGridPart or a TileEntity generally speaking. + */ + IGridHost getMachine(); + + /** + * called when the grid for the node has changed, the general grid state should not be trusted at this point. + */ + void gridChanged(); + + /** + * Determines what item stack is used to render this node in the GUI. + * + * @return the render item stack to use to render this node, null is valid, and will not show this node. + */ + public ItemStack getMachineRepresentation(); +} diff --git a/src/api/java/appeng/api/networking/IGridCache.java b/src/api/java/appeng/api/networking/IGridCache.java index 3e608aae..f920d5ae 100644 --- a/src/api/java/appeng/api/networking/IGridCache.java +++ b/src/api/java/appeng/api/networking/IGridCache.java @@ -1,71 +1,71 @@ -package appeng.api.networking; - -/** - * - * Allows you to create a network wise service, AE2 uses these for providing - * item, spatial, and tunnel services. - * - * Any Class that implements this, should have a public default constructor that - * takes a single argument of type IGrid. - * - */ -public interface IGridCache -{ - - /** - * Called each tick for the network, allows you to have active network wide - * behaviors. - * - */ - void onUpdateTick(); - - /** - * inform your cache, that a machine was removed from the grid. - * - * Important: Do not trust the grids state in this method, interact only - * with the node you are passed, if you need to manage other grid - * information, do it on the next updateTick. - * - * @param gridNode removed from that grid - * @param machine to be removed machine - */ - void removeNode(IGridNode gridNode, IGridHost machine); - - /** - * informs you cache that a machine was added to the grid. - * - * Important: Do not trust the grids state in this method, interact only - * with the node you are passed, if you need to manage other grid - * information, do it on the next updateTick. - * - * @param gridNode added to grid node - * @param machine to be added machine - */ - void addNode(IGridNode gridNode, IGridHost machine); - - /** - * Called when a grid splits into two grids, AE will call a split as it - * Iteratively processes changes. The destination should receive half, and - * the current cache should receive half. - * - * @param destinationStorage storage which receives half of old grid - */ - void onSplit(IGridStorage destinationStorage); - - /** - * Called when two grids merge into one, AE will call a join as it - * Iteratively processes changes. Use this method to incorporate all the - * data from the source into your cache. - * - * @param sourceStorage old storage - */ - void onJoin(IGridStorage sourceStorage); - - /** - * Called when saving changes, - * - * @param destinationStorage storage - */ - void populateGridStorage(IGridStorage destinationStorage); - -} +package appeng.api.networking; + +/** + * + * Allows you to create a network wise service, AE2 uses these for providing + * item, spatial, and tunnel services. + * + * Any Class that implements this, should have a public default constructor that + * takes a single argument of type IGrid. + * + */ +public interface IGridCache +{ + + /** + * Called each tick for the network, allows you to have active network wide + * behaviors. + * + */ + void onUpdateTick(); + + /** + * inform your cache, that a machine was removed from the grid. + * + * Important: Do not trust the grids state in this method, interact only + * with the node you are passed, if you need to manage other grid + * information, do it on the next updateTick. + * + * @param gridNode removed from that grid + * @param machine to be removed machine + */ + void removeNode(IGridNode gridNode, IGridHost machine); + + /** + * informs you cache that a machine was added to the grid. + * + * Important: Do not trust the grids state in this method, interact only + * with the node you are passed, if you need to manage other grid + * information, do it on the next updateTick. + * + * @param gridNode added to grid node + * @param machine to be added machine + */ + void addNode(IGridNode gridNode, IGridHost machine); + + /** + * Called when a grid splits into two grids, AE will call a split as it + * Iteratively processes changes. The destination should receive half, and + * the current cache should receive half. + * + * @param destinationStorage storage which receives half of old grid + */ + void onSplit(IGridStorage destinationStorage); + + /** + * Called when two grids merge into one, AE will call a join as it + * Iteratively processes changes. Use this method to incorporate all the + * data from the source into your cache. + * + * @param sourceStorage old storage + */ + void onJoin(IGridStorage sourceStorage); + + /** + * Called when saving changes, + * + * @param destinationStorage storage + */ + void populateGridStorage(IGridStorage destinationStorage); + +} diff --git a/src/api/java/appeng/api/networking/IGridCacheRegistry.java b/src/api/java/appeng/api/networking/IGridCacheRegistry.java index bd36fe29..8061f8cb 100644 --- a/src/api/java/appeng/api/networking/IGridCacheRegistry.java +++ b/src/api/java/appeng/api/networking/IGridCacheRegistry.java @@ -1,27 +1,27 @@ -package appeng.api.networking; - -import java.util.HashMap; - -/** - * 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 iface grid cache class - */ - void registerGridCache(Class iface, Class implementation); - - /** - * requests a new instance of a grid cache for use, used internally - * - * @param grid grid - * - * @return a new HashMap of IGridCaches from the registry, called from IGrid when constructing a new grid. - */ - HashMap, IGridCache> createCacheInstance(IGrid grid); - -} +package appeng.api.networking; + +import java.util.HashMap; + +/** + * 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 iface grid cache class + */ + void registerGridCache(Class iface, Class implementation); + + /** + * requests a new instance of a grid cache for use, used internally + * + * @param grid grid + * + * @return a new HashMap of IGridCaches from the registry, called from IGrid when constructing a new grid. + */ + HashMap, IGridCache> createCacheInstance(IGrid grid); + +} diff --git a/src/api/java/appeng/api/networking/IGridConnection.java b/src/api/java/appeng/api/networking/IGridConnection.java index bbeea1b5..9d5bb666 100644 --- a/src/api/java/appeng/api/networking/IGridConnection.java +++ b/src/api/java/appeng/api/networking/IGridConnection.java @@ -1,58 +1,58 @@ -package appeng.api.networking; - -import net.minecraftforge.common.util.ForgeDirection; - -/** - * Access to AE's internal grid connections. - * - * Messing with connection is generally completely unnecessary, you should be able to just use IGridNode.updateState() - * to have AE manage them for you. - * - * Don't Implement. - */ -public interface IGridConnection -{ - - /** - * lets you get the opposing node of the connection by passing your own node. - * - * @param gridNode current grid node - * @return the IGridNode which represents the opposite side of the connection. - */ - IGridNode getOtherSide(IGridNode gridNode); - - /** - * determine the direction of the connection based on your node. - * - * @param gridNode current grid node - * @return the direction of the connection, only valid for in world connections. - */ - ForgeDirection getDirection(IGridNode gridNode); - - /** - * by destroying a connection you may create new grids, and trigger un-expected behavior, you should only destroy - * connections if you created them. - */ - void destroy(); - - /** - * @return node A - */ - IGridNode a(); - - /** - * @return node B - */ - IGridNode b(); - - /** - * @return if the connection is invisible this returns false - */ - boolean hasDirection(); - - /** - * @return how many channels pass over this connections. - */ - int getUsedChannels(); - +package appeng.api.networking; + +import net.minecraftforge.common.util.ForgeDirection; + +/** + * Access to AE's internal grid connections. + * + * Messing with connection is generally completely unnecessary, you should be able to just use IGridNode.updateState() + * to have AE manage them for you. + * + * Don't Implement. + */ +public interface IGridConnection +{ + + /** + * lets you get the opposing node of the connection by passing your own node. + * + * @param gridNode current grid node + * @return the IGridNode which represents the opposite side of the connection. + */ + IGridNode getOtherSide(IGridNode gridNode); + + /** + * determine the direction of the connection based on your node. + * + * @param gridNode current grid node + * @return the direction of the connection, only valid for in world connections. + */ + ForgeDirection getDirection(IGridNode gridNode); + + /** + * by destroying a connection you may create new grids, and trigger un-expected behavior, you should only destroy + * connections if you created them. + */ + void destroy(); + + /** + * @return node A + */ + IGridNode a(); + + /** + * @return node B + */ + IGridNode b(); + + /** + * @return if the connection is invisible this returns false + */ + boolean hasDirection(); + + /** + * @return how many channels pass over this connections. + */ + int getUsedChannels(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/networking/IGridHost.java b/src/api/java/appeng/api/networking/IGridHost.java index 818cb741..4af28c9a 100644 --- a/src/api/java/appeng/api/networking/IGridHost.java +++ b/src/api/java/appeng/api/networking/IGridHost.java @@ -1,43 +1,43 @@ -package appeng.api.networking; - -import net.minecraft.tileentity.TileEntity; -import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.parts.IPart; -import appeng.api.util.AECableType; - -/** - * - * Implement to create a networked {@link TileEntity} or {@link IPart} must - * be implemented for a part, or tile entity to become part of a grid. - * - */ -public interface IGridHost -{ - - /** - * get the grid node for a particular side of a block, you can return null, - * by returning a valid node later and calling updateState, you can join the - * Grid when your block is ready. - * - * @param dir - * feel free to ignore this, most blocks will use the same node - * for every side. - * @return a new IGridNode, create these with - * AEApi.instance().createGridNode( MyIGridBlock ) - */ - public IGridNode getGridNode(ForgeDirection dir); - - /** - * Determines how cables render when they connect to this block. Priority is - * Smart > Covered > Glass - * - * @param dir direction - */ - public AECableType getCableConnectionType(ForgeDirection dir); - - /** - * break this host, its violating security rules, just break your block, or part. - */ - public void securityBreak(); - -} +package appeng.api.networking; + +import net.minecraft.tileentity.TileEntity; +import net.minecraftforge.common.util.ForgeDirection; +import appeng.api.parts.IPart; +import appeng.api.util.AECableType; + +/** + * + * Implement to create a networked {@link TileEntity} or {@link IPart} must + * be implemented for a part, or tile entity to become part of a grid. + * + */ +public interface IGridHost +{ + + /** + * get the grid node for a particular side of a block, you can return null, + * by returning a valid node later and calling updateState, you can join the + * Grid when your block is ready. + * + * @param dir + * feel free to ignore this, most blocks will use the same node + * for every side. + * @return a new IGridNode, create these with + * AEApi.instance().createGridNode( MyIGridBlock ) + */ + public IGridNode getGridNode(ForgeDirection dir); + + /** + * Determines how cables render when they connect to this block. Priority is + * Smart > Covered > Glass + * + * @param dir direction + */ + public AECableType getCableConnectionType(ForgeDirection dir); + + /** + * break this host, its violating security rules, just break your block, or part. + */ + public void securityBreak(); + +} diff --git a/src/api/java/appeng/api/networking/IGridNode.java b/src/api/java/appeng/api/networking/IGridNode.java index 30a3bb5f..21bd2c20 100644 --- a/src/api/java/appeng/api/networking/IGridNode.java +++ b/src/api/java/appeng/api/networking/IGridNode.java @@ -1,141 +1,141 @@ -package appeng.api.networking; - -import appeng.api.IAppEngApi; -import appeng.api.util.IReadOnlyCollection; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.world.World; -import net.minecraftforge.common.util.ForgeDirection; - -import java.util.EnumSet; - -/** - * - * Gives you a view into your Nodes connections and information. - * - * updateState, getGrid, destroy are required to implement a proper IGridHost. - * - * Don't Implement; Acquire from {@link IAppEngApi}.createGridNode - * - */ -public interface IGridNode -{ - - /** - * lets you walk the grid stating at the current node using a IGridVisitor, generally not needed, please use only if - * required. - * - * @param visitor visitor - */ - void beginVisit(IGridVisitor visitor); - - /** - * inform the node that your IGridBlock has changed its internal state, and force the node to update. - * - * ALWAYS make sure that your tile entity is in the world, and has its node properly saved to be returned from the - * host before updating state, - * - * If your entity is not in the world, or if you IGridHost returns a different node for the same side you will - * likely crash the game. - * - */ - void updateState(); - - /** - * get the machine represented by the node. - * - * @return grid host - */ - IGridHost getMachine(); - - /** - * get the grid for the node, this can change at a moments notice. - * - * @return grid - */ - IGrid getGrid(); - - /** - * By destroying your node, you destroy any connections, and its existence in the grid, use in invalidate, or - * onChunkUnload - */ - void destroy(); - - /** - * @return the world the node is located in - */ - World getWorld(); - - /** - * - * @return a set of the connected sides, UNKNOWN represents an invisible connection - */ - EnumSet getConnectedSides(); - - /** - * lets you iterate a nodes connections - * - * @return grid connections - */ - IReadOnlyCollection getConnections(); - - /** - * @return the IGridBlock for this node - */ - IGridBlock getGridBlock(); - - /** - * Reflects the networks status, returns true only if the network is powered, and the network is not booting, this - * also takes into account channels. - * - * @return true if is Network node active, and participating. - */ - boolean isActive(); - - /** - * this should be called for each node you create, if you have a nodeData compound to load from, you can store all - * your nods on a single compound using name. - * - * Important: You must call this before updateState. - * - * @param name nbt name - * @param nodeData to be loaded data - */ - void loadFromNBT(String name, NBTTagCompound nodeData); - - /** - * this should be called for each node you maintain, you can save all your nodes to the same tag with different - * names, if you fail to complete the load / save procedure, network state may be lost between game load/saves. - * - * @param name nbt name - * @param nodeData to be saved data - */ - void saveToNBT(String name, NBTTagCompound nodeData); - - /** - * @return if the node's channel requirements are currently met, use this for display purposes, use isActive for - * status. - */ - boolean meetsChannelRequirements(); - - /** - * see if this node has a certain flag - * - * @param flag flags - * @return true if has flag - */ - boolean hasFlag(GridFlags flag); - - /** - * tell the node who was responsible for placing it, failure to do this may result in in-compatibility with the - * security system. Called instead of loadFromNBT when initially placed, once set never required again, the value is saved with the Node NBT. - * - * @param playerID new player id - */ - void setPlayerID(int playerID); - - /** - * @return the ownerID this represents the person who placed the node. - */ - int getPlayerID(); - +package appeng.api.networking; + +import appeng.api.IAppEngApi; +import appeng.api.util.IReadOnlyCollection; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.world.World; +import net.minecraftforge.common.util.ForgeDirection; + +import java.util.EnumSet; + +/** + * + * Gives you a view into your Nodes connections and information. + * + * updateState, getGrid, destroy are required to implement a proper IGridHost. + * + * Don't Implement; Acquire from {@link IAppEngApi}.createGridNode + * + */ +public interface IGridNode +{ + + /** + * lets you walk the grid stating at the current node using a IGridVisitor, generally not needed, please use only if + * required. + * + * @param visitor visitor + */ + void beginVisit(IGridVisitor visitor); + + /** + * inform the node that your IGridBlock has changed its internal state, and force the node to update. + * + * ALWAYS make sure that your tile entity is in the world, and has its node properly saved to be returned from the + * host before updating state, + * + * If your entity is not in the world, or if you IGridHost returns a different node for the same side you will + * likely crash the game. + * + */ + void updateState(); + + /** + * get the machine represented by the node. + * + * @return grid host + */ + IGridHost getMachine(); + + /** + * get the grid for the node, this can change at a moments notice. + * + * @return grid + */ + IGrid getGrid(); + + /** + * By destroying your node, you destroy any connections, and its existence in the grid, use in invalidate, or + * onChunkUnload + */ + void destroy(); + + /** + * @return the world the node is located in + */ + World getWorld(); + + /** + * + * @return a set of the connected sides, UNKNOWN represents an invisible connection + */ + EnumSet getConnectedSides(); + + /** + * lets you iterate a nodes connections + * + * @return grid connections + */ + IReadOnlyCollection getConnections(); + + /** + * @return the IGridBlock for this node + */ + IGridBlock getGridBlock(); + + /** + * Reflects the networks status, returns true only if the network is powered, and the network is not booting, this + * also takes into account channels. + * + * @return true if is Network node active, and participating. + */ + boolean isActive(); + + /** + * this should be called for each node you create, if you have a nodeData compound to load from, you can store all + * your nods on a single compound using name. + * + * Important: You must call this before updateState. + * + * @param name nbt name + * @param nodeData to be loaded data + */ + void loadFromNBT(String name, NBTTagCompound nodeData); + + /** + * this should be called for each node you maintain, you can save all your nodes to the same tag with different + * names, if you fail to complete the load / save procedure, network state may be lost between game load/saves. + * + * @param name nbt name + * @param nodeData to be saved data + */ + void saveToNBT(String name, NBTTagCompound nodeData); + + /** + * @return if the node's channel requirements are currently met, use this for display purposes, use isActive for + * status. + */ + boolean meetsChannelRequirements(); + + /** + * see if this node has a certain flag + * + * @param flag flags + * @return true if has flag + */ + boolean hasFlag(GridFlags flag); + + /** + * tell the node who was responsible for placing it, failure to do this may result in in-compatibility with the + * security system. Called instead of loadFromNBT when initially placed, once set never required again, the value is saved with the Node NBT. + * + * @param playerID new player id + */ + void setPlayerID(int playerID); + + /** + * @return the ownerID this represents the person who placed the node. + */ + int getPlayerID(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/networking/IGridVisitor.java b/src/api/java/appeng/api/networking/IGridVisitor.java index 0b85b07f..2593160f 100644 --- a/src/api/java/appeng/api/networking/IGridVisitor.java +++ b/src/api/java/appeng/api/networking/IGridVisitor.java @@ -1,21 +1,21 @@ -package appeng.api.networking; - -/** - * Simple Visitor pattern access to network nodes. - */ -public interface IGridVisitor -{ - - /** - * Called for each node on the network. - * - * By returning false your informing the host to stop visiting nodes beyond the current node. - * - * @param n - * the current node. - * - * @return true to continue visiting nodes beyond this node. - */ - public boolean visitNode(IGridNode n); - -} +package appeng.api.networking; + +/** + * Simple Visitor pattern access to network nodes. + */ +public interface IGridVisitor +{ + + /** + * Called for each node on the network. + * + * By returning false your informing the host to stop visiting nodes beyond the current node. + * + * @param n + * the current node. + * + * @return true to continue visiting nodes beyond this node. + */ + public boolean visitNode(IGridNode n); + +} diff --git a/src/api/java/appeng/api/networking/energy/IEnergyGrid.java b/src/api/java/appeng/api/networking/energy/IEnergyGrid.java index 61c0613c..38f9bbd1 100644 --- a/src/api/java/appeng/api/networking/energy/IEnergyGrid.java +++ b/src/api/java/appeng/api/networking/energy/IEnergyGrid.java @@ -1,82 +1,82 @@ -package appeng.api.networking.energy; - -import appeng.api.config.Actionable; -import appeng.api.networking.IGridCache; -import appeng.api.networking.events.MENetworkPowerStatusChange; - -/** - * AE's Power system. - */ -public interface IEnergyGrid extends IGridCache, IEnergySource, IEnergyGridProvider -{ - - /** - * @return the current calculated idle energy drain each tick, is used internally to drain power for each tick. - */ - public double getIdlePowerUsage(); - - /** - * @return the average power drain over the past 10 ticks, includes idle usage during this time, and all use of - * extractPower. - */ - public double getAvgPowerUsage(); - - /** - * @return the average energy injected into the system per tick, for the last 10 ticks. - */ - public double getAvgPowerInjection(); - - /** - * AE maintains an idle draw of power separate from active power draw, it condenses this into a single operation - * that determines the networks "powered state" if the network is considered off-line, your machines should not - * function. - * - * {@link MENetworkPowerStatusChange} events are posted when this value changes if you need to be notified of the - * change, most machines can simply test the value when they operate. - * - * @return if the network is powered or not. - */ - public boolean isNetworkPowered(); - - /** - * AE will accept any power, and store it, to maintain sanity please don't send more then 10,000 at a time. - * - * IMPORTANT: Network power knows no bounds, for less spamy power flow, networks can store more then their allotted - * storage, however, it should be kept to a minimum, to help with this, this method returns the networks current - * OVERFLOW, this is not energy you can store some where else, its already stored in the network, you can extract it - * if you want, however it it owned by the network, this is different then IAEEnergyStore - * - * Another important note, is that if a network that had overflow is deleted, its power is gone, this is one of the - * reasons why keeping overflow to a minimum is important. - * - * @param amt - * power to inject into the network - * @param mode - * should the action be simulated or performed? - * @return the amount of power that the network has OVER the limit. - */ - public double injectPower(double amt, Actionable mode); - - /** - * this is should be considered an estimate, and not relied upon for real calculations. - * - * @return estimated available power. - */ - public double getStoredPower(); - - /** - * this is should be considered an estimate, and not relied upon for real calculations. - * - * @return estimated available power. - */ - double getMaxStoredPower(); - - /** - * Calculation will be capped at maxRequired, this improves performance by limiting the number of nodes needed to - * calculate the demand. - * - * @return Amount of power required to charge the grid, in AE. - */ - public double getEnergyDemand(double maxRequired); - -} +package appeng.api.networking.energy; + +import appeng.api.config.Actionable; +import appeng.api.networking.IGridCache; +import appeng.api.networking.events.MENetworkPowerStatusChange; + +/** + * AE's Power system. + */ +public interface IEnergyGrid extends IGridCache, IEnergySource, IEnergyGridProvider +{ + + /** + * @return the current calculated idle energy drain each tick, is used internally to drain power for each tick. + */ + public double getIdlePowerUsage(); + + /** + * @return the average power drain over the past 10 ticks, includes idle usage during this time, and all use of + * extractPower. + */ + public double getAvgPowerUsage(); + + /** + * @return the average energy injected into the system per tick, for the last 10 ticks. + */ + public double getAvgPowerInjection(); + + /** + * AE maintains an idle draw of power separate from active power draw, it condenses this into a single operation + * that determines the networks "powered state" if the network is considered off-line, your machines should not + * function. + * + * {@link MENetworkPowerStatusChange} events are posted when this value changes if you need to be notified of the + * change, most machines can simply test the value when they operate. + * + * @return if the network is powered or not. + */ + public boolean isNetworkPowered(); + + /** + * AE will accept any power, and store it, to maintain sanity please don't send more then 10,000 at a time. + * + * IMPORTANT: Network power knows no bounds, for less spamy power flow, networks can store more then their allotted + * storage, however, it should be kept to a minimum, to help with this, this method returns the networks current + * OVERFLOW, this is not energy you can store some where else, its already stored in the network, you can extract it + * if you want, however it it owned by the network, this is different then IAEEnergyStore + * + * Another important note, is that if a network that had overflow is deleted, its power is gone, this is one of the + * reasons why keeping overflow to a minimum is important. + * + * @param amt + * power to inject into the network + * @param mode + * should the action be simulated or performed? + * @return the amount of power that the network has OVER the limit. + */ + public double injectPower(double amt, Actionable mode); + + /** + * this is should be considered an estimate, and not relied upon for real calculations. + * + * @return estimated available power. + */ + public double getStoredPower(); + + /** + * this is should be considered an estimate, and not relied upon for real calculations. + * + * @return estimated available power. + */ + double getMaxStoredPower(); + + /** + * Calculation will be capped at maxRequired, this improves performance by limiting the number of nodes needed to + * calculate the demand. + * + * @return Amount of power required to charge the grid, in AE. + */ + public double getEnergyDemand(double maxRequired); + +} diff --git a/src/api/java/appeng/api/networking/energy/IEnergyGridProvider.java b/src/api/java/appeng/api/networking/energy/IEnergyGridProvider.java index 656ae7a4..a7412630 100644 --- a/src/api/java/appeng/api/networking/energy/IEnergyGridProvider.java +++ b/src/api/java/appeng/api/networking/energy/IEnergyGridProvider.java @@ -1,28 +1,28 @@ -package appeng.api.networking.energy; - -import java.util.Set; - -import appeng.api.config.Actionable; - -/** - * internal use only. - */ -public interface IEnergyGridProvider -{ - - /** - * internal use only - */ - public double extractAEPower(double amt, Actionable mode, Set seen); - - /** - * internal use only - */ - public double injectAEPower(double amt, Actionable mode, Set seen); - - /** - * internal use only - */ - public double getEnergyDemand(double d, Set seen); - -} +package appeng.api.networking.energy; + +import java.util.Set; + +import appeng.api.config.Actionable; + +/** + * internal use only. + */ +public interface IEnergyGridProvider +{ + + /** + * internal use only + */ + public double extractAEPower(double amt, Actionable mode, Set seen); + + /** + * internal use only + */ + public double injectAEPower(double amt, Actionable mode, Set seen); + + /** + * internal use only + */ + public double getEnergyDemand(double d, Set seen); + +} diff --git a/src/api/java/appeng/api/networking/events/MENetworkPostCacheConstruction.java b/src/api/java/appeng/api/networking/events/MENetworkPostCacheConstruction.java index 68cdb74b..05b28128 100644 --- a/src/api/java/appeng/api/networking/events/MENetworkPostCacheConstruction.java +++ b/src/api/java/appeng/api/networking/events/MENetworkPostCacheConstruction.java @@ -1,10 +1,10 @@ -package appeng.api.networking.events; - -/** - * Posted after all the caches are available, but before the grid is fully - * constructed, can be used to perform cross cache construction processes. - */ -public class MENetworkPostCacheConstruction extends MENetworkEvent -{ - -} +package appeng.api.networking.events; + +/** + * Posted after all the caches are available, but before the grid is fully + * constructed, can be used to perform cross cache construction processes. + */ +public class MENetworkPostCacheConstruction extends MENetworkEvent +{ + +} diff --git a/src/api/java/appeng/api/networking/pathing/IPathingGrid.java b/src/api/java/appeng/api/networking/pathing/IPathingGrid.java index 97416f89..90f30e04 100644 --- a/src/api/java/appeng/api/networking/pathing/IPathingGrid.java +++ b/src/api/java/appeng/api/networking/pathing/IPathingGrid.java @@ -1,24 +1,24 @@ -package appeng.api.networking.pathing; - -import appeng.api.networking.IGridCache; - -public interface IPathingGrid extends IGridCache -{ - - /** - * @return true if the network is in its booting stage - */ - boolean isNetworkBooting(); - - /** - * @return the controller state of the network, useful if you want to - * require a controller for a feature. - */ - ControllerState getControllerState(); - - /** - * trigger a network reset, booting, pathfinding and all. - */ - void repath(); - +package appeng.api.networking.pathing; + +import appeng.api.networking.IGridCache; + +public interface IPathingGrid extends IGridCache +{ + + /** + * @return true if the network is in its booting stage + */ + boolean isNetworkBooting(); + + /** + * @return the controller state of the network, useful if you want to + * require a controller for a feature. + */ + ControllerState getControllerState(); + + /** + * trigger a network reset, booting, pathfinding and all. + */ + void repath(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/networking/storage/IStorageGrid.java b/src/api/java/appeng/api/networking/storage/IStorageGrid.java index 5a7291a2..774e96dc 100644 --- a/src/api/java/appeng/api/networking/storage/IStorageGrid.java +++ b/src/api/java/appeng/api/networking/storage/IStorageGrid.java @@ -1,45 +1,45 @@ -package appeng.api.networking.storage; - -import appeng.api.networking.IGridCache; -import appeng.api.networking.IGridHost; -import appeng.api.networking.security.BaseActionSource; -import appeng.api.storage.ICellContainer; -import appeng.api.storage.ICellProvider; -import appeng.api.storage.IStorageMonitorable; -import appeng.api.storage.StorageChannel; -import appeng.api.storage.data.IAEStack; - -/** - * Common base class for item / fluid storage caches. - */ -public interface IStorageGrid extends IGridCache, IStorageMonitorable -{ - - /** - * Used to inform the network of alterations to the storage system that fall outside of the standard Network - * operations, Examples, ME Chest inputs from the world, or a Storage Bus detecting modifications made to the chest - * by an outside force. - * - * Expects the input to have either a negative or a positive stack size to correspond to the injection, or - * extraction operation. - * - * @param input injected items - */ - void postAlterationOfStoredItems(StorageChannel chan, Iterable input, BaseActionSource src); - - /** - * Used to add a cell provider to the storage system - * - * THIS IT NOT FOR USE {@link IGridHost} THAT PROVIDE {@link ICellContainer} - those are automatically handled by - * the storage system. - * - * @param cc to be added cell provider - */ - void registerCellProvider(ICellProvider cc); - - /** - * remove a provider added with addCellContainer - */ - void unregisterCellProvider(ICellProvider cc); - -} +package appeng.api.networking.storage; + +import appeng.api.networking.IGridCache; +import appeng.api.networking.IGridHost; +import appeng.api.networking.security.BaseActionSource; +import appeng.api.storage.ICellContainer; +import appeng.api.storage.ICellProvider; +import appeng.api.storage.IStorageMonitorable; +import appeng.api.storage.StorageChannel; +import appeng.api.storage.data.IAEStack; + +/** + * Common base class for item / fluid storage caches. + */ +public interface IStorageGrid extends IGridCache, IStorageMonitorable +{ + + /** + * Used to inform the network of alterations to the storage system that fall outside of the standard Network + * operations, Examples, ME Chest inputs from the world, or a Storage Bus detecting modifications made to the chest + * by an outside force. + * + * Expects the input to have either a negative or a positive stack size to correspond to the injection, or + * extraction operation. + * + * @param input injected items + */ + void postAlterationOfStoredItems(StorageChannel chan, Iterable input, BaseActionSource src); + + /** + * Used to add a cell provider to the storage system + * + * THIS IT NOT FOR USE {@link IGridHost} THAT PROVIDE {@link ICellContainer} - those are automatically handled by + * the storage system. + * + * @param cc to be added cell provider + */ + void registerCellProvider(ICellProvider cc); + + /** + * remove a provider added with addCellContainer + */ + void unregisterCellProvider(ICellProvider cc); + +} diff --git a/src/api/java/appeng/api/networking/ticking/IGridTickable.java b/src/api/java/appeng/api/networking/ticking/IGridTickable.java index ea5c36ef..66d3c898 100644 --- a/src/api/java/appeng/api/networking/ticking/IGridTickable.java +++ b/src/api/java/appeng/api/networking/ticking/IGridTickable.java @@ -1,56 +1,56 @@ -package appeng.api.networking.ticking; - -import appeng.api.networking.IGridNode; - -/** - * Implement on IGridHosts which want to use AE's Network Ticking Feature. - */ -public interface IGridTickable -{ - - /** - * Important note regarding IGridTickables with more then one one node, - * - * If your IGridHost hosts multiple nodes, it may be on multiple grids, or - * its node may be present on the same grid multiple times, this is as - * designed, however if you choose to use the grid to tick these Hosts you - * must be aware that they they should probably pick a single node to tick - * for, and not tick for each node. - * - */ - - /** - * You can return null, if you wish to tick using MC's ticking mechanism, or - * you can return a valid TickingRequest to tell AE a guide for which type - * of responsiveness your device wants. - * - * this will be called for your tile any time your tile changes grids, this - * can happen at any time, so if your using the sleep feature you may wish - * to preserve your sleep, in the result of this method. or you can simply - * reset it. - * - * @return null or a valid new TickingRequest - * - */ - TickingRequest getTickingRequest(IGridNode node); - - /** - * AE lets you adjust your tick rate based on the results of your tick, if - * your block as accomplished work you may wish to increase the ticking - * speed, if your block is idle you may wish to slow it down. - * - * Its up to you. - * - * Note: this is never called if you return null from getTickingRequest. - * - * @param TicksSinceLastCall - * the number of world ticks that were skipped since your last - * tick, you can use this to adjust speed of processing or adjust - * your tick rate. - * - * @return tick rate adjustment. - * - */ - TickRateModulation tickingRequest(IGridNode node, int TicksSinceLastCall); - -} +package appeng.api.networking.ticking; + +import appeng.api.networking.IGridNode; + +/** + * Implement on IGridHosts which want to use AE's Network Ticking Feature. + */ +public interface IGridTickable +{ + + /** + * Important note regarding IGridTickables with more then one one node, + * + * If your IGridHost hosts multiple nodes, it may be on multiple grids, or + * its node may be present on the same grid multiple times, this is as + * designed, however if you choose to use the grid to tick these Hosts you + * must be aware that they they should probably pick a single node to tick + * for, and not tick for each node. + * + */ + + /** + * You can return null, if you wish to tick using MC's ticking mechanism, or + * you can return a valid TickingRequest to tell AE a guide for which type + * of responsiveness your device wants. + * + * this will be called for your tile any time your tile changes grids, this + * can happen at any time, so if your using the sleep feature you may wish + * to preserve your sleep, in the result of this method. or you can simply + * reset it. + * + * @return null or a valid new TickingRequest + * + */ + TickingRequest getTickingRequest(IGridNode node); + + /** + * AE lets you adjust your tick rate based on the results of your tick, if + * your block as accomplished work you may wish to increase the ticking + * speed, if your block is idle you may wish to slow it down. + * + * Its up to you. + * + * Note: this is never called if you return null from getTickingRequest. + * + * @param TicksSinceLastCall + * the number of world ticks that were skipped since your last + * tick, you can use this to adjust speed of processing or adjust + * your tick rate. + * + * @return tick rate adjustment. + * + */ + TickRateModulation tickingRequest(IGridNode node, int TicksSinceLastCall); + +} diff --git a/src/api/java/appeng/api/networking/ticking/ITickManager.java b/src/api/java/appeng/api/networking/ticking/ITickManager.java index 3f423437..d5cbbf0b 100644 --- a/src/api/java/appeng/api/networking/ticking/ITickManager.java +++ b/src/api/java/appeng/api/networking/ticking/ITickManager.java @@ -1,44 +1,44 @@ -package appeng.api.networking.ticking; - -import appeng.api.networking.IGridCache; -import appeng.api.networking.IGridNode; - -/** - * - * The network tick manager. - * - */ -public interface ITickManager extends IGridCache -{ - - /** - * immediately sets the node to tick, only valid if your node is marked as "Alertable" in its TickingRequest - * - * Sleeping Devices Still Alertable, when your tile is alerted its new status is determined by the result of its - * tick. - * - * @param node gridnode - */ - boolean alertDevice(IGridNode node); - - /** - * - * disables ticking for your device. - * - * @param node gridnode - * - * @return if the call was successful. - */ - boolean sleepDevice(IGridNode node); - - /** - * - * enables ticking for your device, undoes a sleepDevice call. - * - * @param node gridnode - * - * @return if the call was successful. - */ - boolean wakeDevice(IGridNode node); - -} +package appeng.api.networking.ticking; + +import appeng.api.networking.IGridCache; +import appeng.api.networking.IGridNode; + +/** + * + * The network tick manager. + * + */ +public interface ITickManager extends IGridCache +{ + + /** + * immediately sets the node to tick, only valid if your node is marked as "Alertable" in its TickingRequest + * + * Sleeping Devices Still Alertable, when your tile is alerted its new status is determined by the result of its + * tick. + * + * @param node gridnode + */ + boolean alertDevice(IGridNode node); + + /** + * + * disables ticking for your device. + * + * @param node gridnode + * + * @return if the call was successful. + */ + boolean sleepDevice(IGridNode node); + + /** + * + * enables ticking for your device, undoes a sleepDevice call. + * + * @param node gridnode + * + * @return if the call was successful. + */ + boolean wakeDevice(IGridNode node); + +} diff --git a/src/api/java/appeng/api/networking/ticking/TickRateModulation.java b/src/api/java/appeng/api/networking/ticking/TickRateModulation.java index e5a4e75b..1298b5ab 100644 --- a/src/api/java/appeng/api/networking/ticking/TickRateModulation.java +++ b/src/api/java/appeng/api/networking/ticking/TickRateModulation.java @@ -1,34 +1,34 @@ -package appeng.api.networking.ticking; - -public enum TickRateModulation -{ - /** - * same as idle, but also puts the node to sleep. - */ - SLEEP, - - /** - * set tick rate to maximum. - */ - IDLE, - - /** - * decrease the tick rate marginally. - */ - SLOWER, - - /** - * continue at current rate. - */ - SAME, - - /** - * increase the tick rate marginally. - */ - FASTER, - - /** - * changes the tick rate to the minimum tick rate. - */ - URGENT -} +package appeng.api.networking.ticking; + +public enum TickRateModulation +{ + /** + * same as idle, but also puts the node to sleep. + */ + SLEEP, + + /** + * set tick rate to maximum. + */ + IDLE, + + /** + * decrease the tick rate marginally. + */ + SLOWER, + + /** + * continue at current rate. + */ + SAME, + + /** + * increase the tick rate marginally. + */ + FASTER, + + /** + * changes the tick rate to the minimum tick rate. + */ + URGENT +} diff --git a/src/api/java/appeng/api/networking/ticking/TickingRequest.java b/src/api/java/appeng/api/networking/ticking/TickingRequest.java index 570d9f7d..02ac54e6 100644 --- a/src/api/java/appeng/api/networking/ticking/TickingRequest.java +++ b/src/api/java/appeng/api/networking/ticking/TickingRequest.java @@ -1,54 +1,54 @@ -package appeng.api.networking.ticking; - -/** - * - * Describes how your tiles ticking is executed. - * - */ -public class TickingRequest -{ - - /** - * the minimum number of ticks that must pass between ticks. - * - * Valid Values are : 1+ - * - * Suggested is 5-20 - * - */ - public final int minTickRate; - - /** - * the maximum number of ticks that can pass between ticks, if this value is - * exceeded the tile must tick. - * - * Valid Values are 1+ - * - * Suggested is 20-40 - * - */ - public final int maxTickRate; - - /** - * - * Determines the current expected state of your node, if your node expects - * to be sleeping, then return true. - * - */ - public final boolean isSleeping; - - /** - * - * True only if you call {@link ITickManager}.alertDevice( IGridNode ); - * - */ - public final boolean canBeAlerted; - - public TickingRequest(int min, int max, boolean sleep, boolean alertable) { - minTickRate = min; - maxTickRate = max; - isSleeping = sleep; - canBeAlerted = alertable; - } - -} +package appeng.api.networking.ticking; + +/** + * + * Describes how your tiles ticking is executed. + * + */ +public class TickingRequest +{ + + /** + * the minimum number of ticks that must pass between ticks. + * + * Valid Values are : 1+ + * + * Suggested is 5-20 + * + */ + public final int minTickRate; + + /** + * the maximum number of ticks that can pass between ticks, if this value is + * exceeded the tile must tick. + * + * Valid Values are 1+ + * + * Suggested is 20-40 + * + */ + public final int maxTickRate; + + /** + * + * Determines the current expected state of your node, if your node expects + * to be sleeping, then return true. + * + */ + public final boolean isSleeping; + + /** + * + * True only if you call {@link ITickManager}.alertDevice( IGridNode ); + * + */ + public final boolean canBeAlerted; + + public TickingRequest(int min, int max, boolean sleep, boolean alertable) { + minTickRate = min; + maxTickRate = max; + isSleeping = sleep; + canBeAlerted = alertable; + } + +} diff --git a/src/api/java/appeng/api/package-info.java b/src/api/java/appeng/api/package-info.java index c7171c43..0e52e08c 100644 --- a/src/api/java/appeng/api/package-info.java +++ b/src/api/java/appeng/api/package-info.java @@ -1,5 +1,5 @@ -@API(apiVersion = "rv2", owner = "appliedenergistics2", provides = "appliedenergistics2|API") -package appeng.api; - -import cpw.mods.fml.common.API; - +@API(apiVersion = "rv2", owner = "appliedenergistics2", provides = "appliedenergistics2|API") +package appeng.api; + +import cpw.mods.fml.common.API; + diff --git a/src/api/java/appeng/api/parts/BusSupport.java b/src/api/java/appeng/api/parts/BusSupport.java index b8b6e90e..1702bbce 100644 --- a/src/api/java/appeng/api/parts/BusSupport.java +++ b/src/api/java/appeng/api/parts/BusSupport.java @@ -1,10 +1,10 @@ -package appeng.api.parts; - -public enum BusSupport -{ - CABLE, - - DENSE_CABLE, - - NO_PARTS -} +package appeng.api.parts; + +public enum BusSupport +{ + CABLE, + + DENSE_CABLE, + + NO_PARTS +} diff --git a/src/api/java/appeng/api/parts/IFacadeContainer.java b/src/api/java/appeng/api/parts/IFacadeContainer.java index 1400725d..397fbecc 100644 --- a/src/api/java/appeng/api/parts/IFacadeContainer.java +++ b/src/api/java/appeng/api/parts/IFacadeContainer.java @@ -1,75 +1,75 @@ -package appeng.api.parts; - -import io.netty.buffer.ByteBuf; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraftforge.common.util.ForgeDirection; - -import java.io.IOException; - -/** - * Used Internally. - * - * not intended for implementation. - */ -public interface IFacadeContainer -{ - - /** - * Attempts to add the {@link IFacadePart} to the given side. - * - * @return true if the facade as successfully added. - */ - boolean addFacade(IFacadePart a); - - /** - * Removed the facade on the given side, or does nothing. - */ - void removeFacade(IPartHost host, ForgeDirection side); - - /** - * @return the {@link IFacadePart} for a given side, or null. - */ - IFacadePart getFacade(ForgeDirection s); - - /** - * rotate the facades left. - */ - void rotateLeft(); - - /** - * write nbt data - * - * @param data to be written data - */ - void writeToNBT(NBTTagCompound data); - - /** - * read from stream - * - * @param data to be read data - * @return true if it was readable - * @throws IOException - */ - boolean readFromStream(ByteBuf data) throws IOException; - - /** - * read from NBT - * - * @param data to be read data - */ - void readFromNBT(NBTTagCompound data); - - /** - * write to stream - * - * @param data to be written data - * @throws IOException - */ - void writeToStream(ByteBuf data) throws IOException; - - /** - * @return true if there are no facades. - */ - boolean isEmpty(); - -} +package appeng.api.parts; + +import io.netty.buffer.ByteBuf; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraftforge.common.util.ForgeDirection; + +import java.io.IOException; + +/** + * Used Internally. + * + * not intended for implementation. + */ +public interface IFacadeContainer +{ + + /** + * Attempts to add the {@link IFacadePart} to the given side. + * + * @return true if the facade as successfully added. + */ + boolean addFacade(IFacadePart a); + + /** + * Removed the facade on the given side, or does nothing. + */ + void removeFacade(IPartHost host, ForgeDirection side); + + /** + * @return the {@link IFacadePart} for a given side, or null. + */ + IFacadePart getFacade(ForgeDirection s); + + /** + * rotate the facades left. + */ + void rotateLeft(); + + /** + * write nbt data + * + * @param data to be written data + */ + void writeToNBT(NBTTagCompound data); + + /** + * read from stream + * + * @param data to be read data + * @return true if it was readable + * @throws IOException + */ + boolean readFromStream(ByteBuf data) throws IOException; + + /** + * read from NBT + * + * @param data to be read data + */ + void readFromNBT(NBTTagCompound data); + + /** + * write to stream + * + * @param data to be written data + * @throws IOException + */ + void writeToStream(ByteBuf data) throws IOException; + + /** + * @return true if there are no facades. + */ + boolean isEmpty(); + +} diff --git a/src/api/java/appeng/api/parts/IFacadePart.java b/src/api/java/appeng/api/parts/IFacadePart.java index c0e08f3f..cbe647ae 100644 --- a/src/api/java/appeng/api/parts/IFacadePart.java +++ b/src/api/java/appeng/api/parts/IFacadePart.java @@ -1,77 +1,77 @@ -package appeng.api.parts; - -import net.minecraft.client.renderer.RenderBlocks; -import net.minecraft.entity.Entity; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.util.AxisAlignedBB; -import net.minecraftforge.common.util.ForgeDirection; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -/** - * Used Internally. - * - * not intended for implementation. - */ -public interface IFacadePart -{ - - /** - * used to save the part. - */ - ItemStack getItemStack(); - - /** - * used to collide, and pick the part - * - * @param ch collision helper - * @param e colliding entity - */ - void getBoxes(IPartCollisionHelper ch, Entity e); - - /** - * render the part. - * - * @param x x pos of part - * @param y y pos of part - * @param z z pos of part - * @param instance render helper - * @param renderer renderer - * @param fc face container - * @param busBounds bounding box - * @param renderStilt if to render stilt - */ - @SideOnly(Side.CLIENT) - void renderStatic(int x, int y, int z, IPartRenderHelper instance, RenderBlocks renderer, IFacadeContainer fc, AxisAlignedBB busBounds, boolean renderStilt); - - /** - * render the part in inventory. - * - * @param instance render helper - * @param renderer renderer - */ - @SideOnly(Side.CLIENT) - void renderInventory(IPartRenderHelper instance, RenderBlocks renderer); - - /** - * @return side the facade is in - */ - ForgeDirection getSide(); - - /** - * @return the box for the face of the facade - */ - AxisAlignedBB getPrimaryBox(); - - Item getItem(); - - int getItemDamage(); - - boolean isBC(); - - void setThinFacades(boolean useThinFacades); - - boolean isTransparent(); - +package appeng.api.parts; + +import net.minecraft.client.renderer.RenderBlocks; +import net.minecraft.entity.Entity; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.util.AxisAlignedBB; +import net.minecraftforge.common.util.ForgeDirection; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + +/** + * Used Internally. + * + * not intended for implementation. + */ +public interface IFacadePart +{ + + /** + * used to save the part. + */ + ItemStack getItemStack(); + + /** + * used to collide, and pick the part + * + * @param ch collision helper + * @param e colliding entity + */ + void getBoxes(IPartCollisionHelper ch, Entity e); + + /** + * render the part. + * + * @param x x pos of part + * @param y y pos of part + * @param z z pos of part + * @param instance render helper + * @param renderer renderer + * @param fc face container + * @param busBounds bounding box + * @param renderStilt if to render stilt + */ + @SideOnly(Side.CLIENT) + void renderStatic(int x, int y, int z, IPartRenderHelper instance, RenderBlocks renderer, IFacadeContainer fc, AxisAlignedBB busBounds, boolean renderStilt); + + /** + * render the part in inventory. + * + * @param instance render helper + * @param renderer renderer + */ + @SideOnly(Side.CLIENT) + void renderInventory(IPartRenderHelper instance, RenderBlocks renderer); + + /** + * @return side the facade is in + */ + ForgeDirection getSide(); + + /** + * @return the box for the face of the facade + */ + AxisAlignedBB getPrimaryBox(); + + Item getItem(); + + int getItemDamage(); + + boolean isBC(); + + void setThinFacades(boolean useThinFacades); + + boolean isTransparent(); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/parts/IPartHost.java b/src/api/java/appeng/api/parts/IPartHost.java index 8b757b6d..b18712dc 100644 --- a/src/api/java/appeng/api/parts/IPartHost.java +++ b/src/api/java/appeng/api/parts/IPartHost.java @@ -1,152 +1,152 @@ -package appeng.api.parts; - -import appeng.api.util.AEColor; -import appeng.api.util.DimensionalCoord; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.Vec3; -import net.minecraftforge.common.util.ForgeDirection; - -import java.util.Set; - -/** - * Implemented on AE's TileEntity or AE's FMP Part. - * - * Do Not Implement - */ -public interface IPartHost -{ - - /** - * @return the facade container - */ - IFacadeContainer getFacadeContainer(); - - /** - * Test if you can add a part to the specified side of the Part Host, {@link ForgeDirection}.UNKNOWN is used to - * represent the cable in the middle. - * - * @param part to be added part - * @param side part placed onto side - * @return returns false if the part cannot be added. - */ - boolean canAddPart(ItemStack part, ForgeDirection side); - - /** - * try to add a new part to the specified side, returns false if it failed to be added. - * - * @param is new part - * @param side onto side - * @param owner with owning player - * @return null if the item failed to add, the side it was placed on other wise ( may different for cables, - * {@link ForgeDirection}.UNKNOWN ) - */ - ForgeDirection addPart(ItemStack is, ForgeDirection side, EntityPlayer owner); - - /** - * Get part by side ( center is {@link ForgeDirection}.UNKNOWN ) - * - * @param side side of part - * @return the part located on the specified side, or null if there is no part. - */ - IPart getPart(ForgeDirection side); - - /** - * removes the part on the side, this doesn't drop it or anything, if you don't do something with it, its just - * "gone" and its never coming back; think about it. - * - * if you want to drop the part you must request it prior to removing it. - * - * @param side side of part - * @param suppressUpdate - * - used if you need to replace a part's instance, without really removing it first. - */ - void removePart(ForgeDirection side, boolean suppressUpdate); - - /** - * something changed, might want to send a packet to clients to update state. - */ - void markForUpdate(); - - /** - * @return the physical location of the part host in the universe. - */ - DimensionalCoord getLocation(); - - /** - * @return the tile entity for the host, this can either be an FMP tile, or a AE tile - */ - TileEntity getTile(); - - /** - * @return the color of the host type ( this is determined by the middle cable. ) if no cable is present, it returns - * {@link AEColor} .Transparent other wise it returns the color of the cable in the center. - */ - AEColor getColor(); - - /** - * destroys the part container, for internal use. - */ - void clearContainer(); - - /** - * Used to test for FMP microblock blocking internally. - * - * @return returns if microblocks are blocking this cable path. - */ - boolean isBlocked(ForgeDirection side); - - /** - * finds the part located at the position ( pos must be relative, not global ) - * - * @param pos part position - * @return a new SelectedPart, this is never null. - */ - SelectedPart selectPart(Vec3 pos); - - /** - * can be used by parts to trigger the tile or part to save. - */ - void markForSave(); - - /** - * part of the {@link LayerBase} - */ - void partChanged(); - - /** - * get the redstone state of host on this side, this value is cached internally. - * - * @param side side of part - * @return true of the part host is receiving redstone from an external source. - */ - boolean hasRedstone(ForgeDirection side); - - /** - * returns false if this block contains any parts or facades, true other wise. - */ - boolean isEmpty(); - - /** - * @return a mutable list of flags you can adjust to track state. - */ - Set getLayerFlags(); - - /** - * remove host from world... - */ - void cleanup(); - - /** - * notify neighbors uf updated status. - */ - void notifyNeighbors(); - - /** - * true if the tile is in the world, other wise false. - * - * @return true if tile is in world - */ - boolean isInWorld(); +package appeng.api.parts; + +import appeng.api.util.AEColor; +import appeng.api.util.DimensionalCoord; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.Vec3; +import net.minecraftforge.common.util.ForgeDirection; + +import java.util.Set; + +/** + * Implemented on AE's TileEntity or AE's FMP Part. + * + * Do Not Implement + */ +public interface IPartHost +{ + + /** + * @return the facade container + */ + IFacadeContainer getFacadeContainer(); + + /** + * Test if you can add a part to the specified side of the Part Host, {@link ForgeDirection}.UNKNOWN is used to + * represent the cable in the middle. + * + * @param part to be added part + * @param side part placed onto side + * @return returns false if the part cannot be added. + */ + boolean canAddPart(ItemStack part, ForgeDirection side); + + /** + * try to add a new part to the specified side, returns false if it failed to be added. + * + * @param is new part + * @param side onto side + * @param owner with owning player + * @return null if the item failed to add, the side it was placed on other wise ( may different for cables, + * {@link ForgeDirection}.UNKNOWN ) + */ + ForgeDirection addPart(ItemStack is, ForgeDirection side, EntityPlayer owner); + + /** + * Get part by side ( center is {@link ForgeDirection}.UNKNOWN ) + * + * @param side side of part + * @return the part located on the specified side, or null if there is no part. + */ + IPart getPart(ForgeDirection side); + + /** + * removes the part on the side, this doesn't drop it or anything, if you don't do something with it, its just + * "gone" and its never coming back; think about it. + * + * if you want to drop the part you must request it prior to removing it. + * + * @param side side of part + * @param suppressUpdate + * - used if you need to replace a part's instance, without really removing it first. + */ + void removePart(ForgeDirection side, boolean suppressUpdate); + + /** + * something changed, might want to send a packet to clients to update state. + */ + void markForUpdate(); + + /** + * @return the physical location of the part host in the universe. + */ + DimensionalCoord getLocation(); + + /** + * @return the tile entity for the host, this can either be an FMP tile, or a AE tile + */ + TileEntity getTile(); + + /** + * @return the color of the host type ( this is determined by the middle cable. ) if no cable is present, it returns + * {@link AEColor} .Transparent other wise it returns the color of the cable in the center. + */ + AEColor getColor(); + + /** + * destroys the part container, for internal use. + */ + void clearContainer(); + + /** + * Used to test for FMP microblock blocking internally. + * + * @return returns if microblocks are blocking this cable path. + */ + boolean isBlocked(ForgeDirection side); + + /** + * finds the part located at the position ( pos must be relative, not global ) + * + * @param pos part position + * @return a new SelectedPart, this is never null. + */ + SelectedPart selectPart(Vec3 pos); + + /** + * can be used by parts to trigger the tile or part to save. + */ + void markForSave(); + + /** + * part of the {@link LayerBase} + */ + void partChanged(); + + /** + * get the redstone state of host on this side, this value is cached internally. + * + * @param side side of part + * @return true of the part host is receiving redstone from an external source. + */ + boolean hasRedstone(ForgeDirection side); + + /** + * returns false if this block contains any parts or facades, true other wise. + */ + boolean isEmpty(); + + /** + * @return a mutable list of flags you can adjust to track state. + */ + Set getLayerFlags(); + + /** + * remove host from world... + */ + void cleanup(); + + /** + * notify neighbors uf updated status. + */ + void notifyNeighbors(); + + /** + * true if the tile is in the world, other wise false. + * + * @return true if tile is in world + */ + boolean isInWorld(); } \ No newline at end of file diff --git a/src/api/java/appeng/api/parts/PartItemStack.java b/src/api/java/appeng/api/parts/PartItemStack.java index 95a7474d..4c8c72dc 100644 --- a/src/api/java/appeng/api/parts/PartItemStack.java +++ b/src/api/java/appeng/api/parts/PartItemStack.java @@ -1,14 +1,14 @@ -package appeng.api.parts; - -public enum PartItemStack -{ - Pick, - - Break, - - Wrench, - - Network, - - World -} +package appeng.api.parts; + +public enum PartItemStack +{ + Pick, + + Break, + + Wrench, + + Network, + + World +} diff --git a/src/api/java/appeng/api/recipes/IIngredient.java b/src/api/java/appeng/api/recipes/IIngredient.java index f17a219d..9a8cbb91 100644 --- a/src/api/java/appeng/api/recipes/IIngredient.java +++ b/src/api/java/appeng/api/recipes/IIngredient.java @@ -1,64 +1,64 @@ -package appeng.api.recipes; - -import net.minecraft.item.ItemStack; -import appeng.api.exceptions.MissingIngredientError; -import appeng.api.exceptions.RegistrationError; - -public interface IIngredient { - - /** - * Acquire a single input stack for the current recipe, if more then one ItemStack is possible a - * RegistrationError exception will be thrown, ignore these and let the system handle the error. - * - * @return a single ItemStack for the recipe handler. - * - * @throws RegistrationError - * @throws MissingIngredientError - */ - ItemStack getItemStack() throws RegistrationError, MissingIngredientError; - - /** - * Acquire a list of all the input stacks for the current recipe, this is for handlers that support - * multiple inputs per slot. - * - * @return an array of ItemStacks for the recipe handler. - * @throws RegistrationError - * @throws MissingIngredientError - */ - ItemStack[] getItemStackSet() throws RegistrationError, MissingIngredientError; - - /** - * If you wish to support air, you must test before getting the ItemStack, or ItemStackSet - * - * @return true if this slot contains no ItemStack, this is passed as "_" - */ - public boolean isAir(); - - /** - * @return The Name Space of the item. Prefer getItemStack or getItemStackSet - */ - public String getNameSpace(); - - /** - * @return The Name of the item. Prefer getItemStack or getItemStackSet - */ - public String getItemName(); - - /** - * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet - */ - public int getDamageValue(); - - /** - * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet - */ - public int getQty(); - - /** - * Bakes the lists in for faster runtime lookups. - * @throws MissingIngredientError - * @throws RegistrationError - */ - void bake() throws RegistrationError, MissingIngredientError; - -} +package appeng.api.recipes; + +import net.minecraft.item.ItemStack; +import appeng.api.exceptions.MissingIngredientError; +import appeng.api.exceptions.RegistrationError; + +public interface IIngredient { + + /** + * Acquire a single input stack for the current recipe, if more then one ItemStack is possible a + * RegistrationError exception will be thrown, ignore these and let the system handle the error. + * + * @return a single ItemStack for the recipe handler. + * + * @throws RegistrationError + * @throws MissingIngredientError + */ + ItemStack getItemStack() throws RegistrationError, MissingIngredientError; + + /** + * Acquire a list of all the input stacks for the current recipe, this is for handlers that support + * multiple inputs per slot. + * + * @return an array of ItemStacks for the recipe handler. + * @throws RegistrationError + * @throws MissingIngredientError + */ + ItemStack[] getItemStackSet() throws RegistrationError, MissingIngredientError; + + /** + * If you wish to support air, you must test before getting the ItemStack, or ItemStackSet + * + * @return true if this slot contains no ItemStack, this is passed as "_" + */ + public boolean isAir(); + + /** + * @return The Name Space of the item. Prefer getItemStack or getItemStackSet + */ + public String getNameSpace(); + + /** + * @return The Name of the item. Prefer getItemStack or getItemStackSet + */ + public String getItemName(); + + /** + * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet + */ + public int getDamageValue(); + + /** + * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet + */ + public int getQty(); + + /** + * Bakes the lists in for faster runtime lookups. + * @throws MissingIngredientError + * @throws RegistrationError + */ + void bake() throws RegistrationError, MissingIngredientError; + +} diff --git a/src/api/java/appeng/api/storage/StorageChannel.java b/src/api/java/appeng/api/storage/StorageChannel.java index 6bf69619..1ada1509 100644 --- a/src/api/java/appeng/api/storage/StorageChannel.java +++ b/src/api/java/appeng/api/storage/StorageChannel.java @@ -1,33 +1,33 @@ -package appeng.api.storage; - -import appeng.api.AEApi; -import appeng.api.storage.data.IAEFluidStack; -import appeng.api.storage.data.IAEItemStack; -import appeng.api.storage.data.IAEStack; -import appeng.api.storage.data.IItemList; - -public enum StorageChannel -{ - /** - * AE2's Default Storage. - */ - ITEMS( IAEItemStack.class ), - - /** - * AE2's Fluid Based Storage ( mainly added to better support ExtraCells ) - */ - FLUIDS( IAEFluidStack.class ); - - public final Class type; - - private StorageChannel( Class t ) { - type = t; - } - - public IItemList createList() { - if ( this == ITEMS ) - return AEApi.instance().storage().createItemList(); - else - return AEApi.instance().storage().createFluidList(); - } -} +package appeng.api.storage; + +import appeng.api.AEApi; +import appeng.api.storage.data.IAEFluidStack; +import appeng.api.storage.data.IAEItemStack; +import appeng.api.storage.data.IAEStack; +import appeng.api.storage.data.IItemList; + +public enum StorageChannel +{ + /** + * AE2's Default Storage. + */ + ITEMS( IAEItemStack.class ), + + /** + * AE2's Fluid Based Storage ( mainly added to better support ExtraCells ) + */ + FLUIDS( IAEFluidStack.class ); + + public final Class type; + + private StorageChannel( Class t ) { + type = t; + } + + public IItemList createList() { + if ( this == ITEMS ) + return AEApi.instance().storage().createItemList(); + else + return AEApi.instance().storage().createFluidList(); + } +} diff --git a/src/api/java/appeng/api/storage/data/IAEStack.java b/src/api/java/appeng/api/storage/data/IAEStack.java index 2261f998..64a5963c 100644 --- a/src/api/java/appeng/api/storage/data/IAEStack.java +++ b/src/api/java/appeng/api/storage/data/IAEStack.java @@ -1,178 +1,178 @@ -package appeng.api.storage.data; - -import appeng.api.config.FuzzyMode; -import appeng.api.storage.StorageChannel; -import io.netty.buffer.ByteBuf; -import net.minecraft.nbt.NBTTagCompound; - -import java.io.IOException; - -public interface IAEStack -{ - - /** - * add two stacks together - * - * @param is added item - */ - void add(StackType is); - - /** - * number of items in the stack. - * - * @return basically ItemStack.stackSize - */ - long getStackSize(); - - /** - * changes the number of items in the stack. - * - * @param stackSize - * , ItemStack.stackSize = N - */ - StackType 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. - */ - StackType 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 can item be crafted - */ - StackType setCraftable(boolean isCraftable); - - /** - * clears, requestable, craftable, and stack sizes. - */ - StackType reset(); - - /** - * returns true, if the item can be crafted, requested, or extracted. - * - * @return isThisRecordMeaningful - */ - boolean isMeaningful(); - - /** - * Adds more to the stack size... - * - * @param i additional stack size - */ - void incStackSize(long i); - - /** - * removes some from the stack size. - */ - void decStackSize(long i); - - /** - * adds items to the requestable - * - * @param i increased amount of requested items - */ - void incCountRequestable(long i); - - /** - * removes items from the requestable - * - * @param i decreased amount of requested items - */ - void decCountRequestable(long i); - - /** - * write to a NBTTagCompound. - * - * @param i to be written data - */ - void writeToNBT(NBTTagCompound i); - - /** - * Compare stacks using precise logic. - * - * a IAEItemStack to another AEItemStack or a ItemStack. - * - * or - * - * IAEFluidStack, FluidStack - * - * @param obj compared object - * @return true if they are the same. - */ - @Override - boolean equals(Object obj); - - /** - * compare stacks using fuzzy logic - * - * a IAEItemStack to another AEItemStack or a ItemStack. - * - * @param st stacks - * @param mode used fuzzy mode - * @return true if two stacks are equal based on AE Fuzzy Comparison. - */ - boolean fuzzyComparison(Object st, FuzzyMode mode); - - /** - * Slower for disk saving, but smaller/more efficient for packets. - * - * @param data to be written data - * @throws IOException - */ - void writeToPacket(ByteBuf data) throws IOException; - - /** - * Clone the Item / Fluid Stack - * - * @return a new Stack, which is copied from the original. - */ - StackType copy(); - - /** - * create an empty stack. - * - * @return a new stack, which represents an empty copy of the original. - */ - StackType empty(); - - /** - * obtain the NBT Data for the item. - * - * @return nbt data - */ - IAETagCompound getTagCompound(); - - /** - * @return true if the stack is a {@link IAEItemStack} - */ - boolean isItem(); - - /** - * @return true if the stack is a {@link IAEFluidStack} - */ - boolean isFluid(); - - /** - * @return ITEM or FLUID - */ - StorageChannel getChannel(); - -} +package appeng.api.storage.data; + +import appeng.api.config.FuzzyMode; +import appeng.api.storage.StorageChannel; +import io.netty.buffer.ByteBuf; +import net.minecraft.nbt.NBTTagCompound; + +import java.io.IOException; + +public interface IAEStack +{ + + /** + * add two stacks together + * + * @param is added item + */ + void add(StackType is); + + /** + * number of items in the stack. + * + * @return basically ItemStack.stackSize + */ + long getStackSize(); + + /** + * changes the number of items in the stack. + * + * @param stackSize + * , ItemStack.stackSize = N + */ + StackType 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. + */ + StackType 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 can item be crafted + */ + StackType setCraftable(boolean isCraftable); + + /** + * clears, requestable, craftable, and stack sizes. + */ + StackType reset(); + + /** + * returns true, if the item can be crafted, requested, or extracted. + * + * @return isThisRecordMeaningful + */ + boolean isMeaningful(); + + /** + * Adds more to the stack size... + * + * @param i additional stack size + */ + void incStackSize(long i); + + /** + * removes some from the stack size. + */ + void decStackSize(long i); + + /** + * adds items to the requestable + * + * @param i increased amount of requested items + */ + void incCountRequestable(long i); + + /** + * removes items from the requestable + * + * @param i decreased amount of requested items + */ + void decCountRequestable(long i); + + /** + * write to a NBTTagCompound. + * + * @param i to be written data + */ + void writeToNBT(NBTTagCompound i); + + /** + * Compare stacks using precise logic. + * + * a IAEItemStack to another AEItemStack or a ItemStack. + * + * or + * + * IAEFluidStack, FluidStack + * + * @param obj compared object + * @return true if they are the same. + */ + @Override + boolean equals(Object obj); + + /** + * compare stacks using fuzzy logic + * + * a IAEItemStack to another AEItemStack or a ItemStack. + * + * @param st stacks + * @param mode used fuzzy mode + * @return true if two stacks are equal based on AE Fuzzy Comparison. + */ + boolean fuzzyComparison(Object st, FuzzyMode mode); + + /** + * Slower for disk saving, but smaller/more efficient for packets. + * + * @param data to be written data + * @throws IOException + */ + void writeToPacket(ByteBuf data) throws IOException; + + /** + * Clone the Item / Fluid Stack + * + * @return a new Stack, which is copied from the original. + */ + StackType copy(); + + /** + * create an empty stack. + * + * @return a new stack, which represents an empty copy of the original. + */ + StackType empty(); + + /** + * obtain the NBT Data for the item. + * + * @return nbt data + */ + IAETagCompound getTagCompound(); + + /** + * @return true if the stack is a {@link IAEItemStack} + */ + boolean isItem(); + + /** + * @return true if the stack is a {@link IAEFluidStack} + */ + boolean isFluid(); + + /** + * @return ITEM or FLUID + */ + StorageChannel getChannel(); + +} diff --git a/src/api/java/appeng/api/util/AECableType.java b/src/api/java/appeng/api/util/AECableType.java index d8bca2bc..c1ee4eed 100644 --- a/src/api/java/appeng/api/util/AECableType.java +++ b/src/api/java/appeng/api/util/AECableType.java @@ -1,30 +1,30 @@ -package appeng.api.util; - -public enum AECableType -{ - /** - * No Cable present. - */ - NONE, - - /** - * Connections to this block should render as glass. - */ - GLASS, - - /** - * Connections to this block should render as covered. - */ - COVERED, - - /** - * Connections to this block should render as smart. - */ - SMART, - - /** - * Dense Cable, represents a tier 2 block that can carry 32 channels. - */ - DENSE, - -} +package appeng.api.util; + +public enum AECableType +{ + /** + * No Cable present. + */ + NONE, + + /** + * Connections to this block should render as glass. + */ + GLASS, + + /** + * Connections to this block should render as covered. + */ + COVERED, + + /** + * Connections to this block should render as smart. + */ + SMART, + + /** + * Dense Cable, represents a tier 2 block that can carry 32 channels. + */ + DENSE, + +} diff --git a/src/api/java/appeng/api/util/AEColor.java b/src/api/java/appeng/api/util/AEColor.java index 9305bec8..83a45894 100644 --- a/src/api/java/appeng/api/util/AEColor.java +++ b/src/api/java/appeng/api/util/AEColor.java @@ -1,88 +1,88 @@ -package appeng.api.util; - -import net.minecraft.util.StatCollector; - -/** - * List of all colors supported by AE, their names, and various colors for display. - * - * Should be the same order as Dyes, excluding Transparent. - */ -public enum AEColor -{ - - White("gui.appliedenergistics2.White", 0xBEBEBE, 0xDBDBDB, 0xFAFAFA), - - Orange("gui.appliedenergistics2.Orange", 0xF99739, 0xFAAE44, 0xF4DEC3), - - Magenta("gui.appliedenergistics2.Magenta", 0x821E82, 0xB82AB8, 0xC598C8), - - LightBlue("gui.appliedenergistics2.LightBlue", 0x628DCB, 0x82ACE7, 0xD8F6FF), - - Yellow("gui.appliedenergistics2.Yellow", 0xFFF7AA, 0xF8FF4A, 0xFFFFE8), - - Lime("gui.appliedenergistics2.Lime", 0x7CFF4A, 0xBBFF51, 0xE7F7D7), - - Pink("gui.appliedenergistics2.Pink", 0xDC8DB5, 0xF8B5D7, 0xF7DEEB), - - Gray("gui.appliedenergistics2.Gray", 0x7C7C7C, 0xA0A0A0, 0xC9C9C9), - - LightGray("gui.appliedenergistics2.LightGray", 0x9D9D9D, 0xCDCDCD, 0xEFEFEF), - - Cyan("gui.appliedenergistics2.Cyan", 0x2F9BA5, 0x51AAC6, 0xAEDDF4), - - Purple("gui.appliedenergistics2.Purple", 0x8230B2, 0xA453CE, 0xC7A3CC), - - Blue("gui.appliedenergistics2.Blue", 0x2D29A0, 0x514AFF, 0xDDE6FF), - - Brown("gui.appliedenergistics2.Brown", 0x724E35, 0xB7967F, 0xE0D2C8), - - Green("gui.appliedenergistics2.Green", 0x45A021, 0x60E32E, 0xE3F2E3), - - Red("gui.appliedenergistics2.Red", 0xA50029, 0xFF003C, 0xFFE6ED), - - Black("gui.appliedenergistics2.Black", 0x2B2B2B, 0x565656, 0x848484), - - Transparent("gui.appliedenergistics2.Fluix", 0x1B2344, 0x895CA8, 0xD7BBEC); - - /** - * Unlocalized name for color. - */ - final public String unlocalizedName; - - /** - * Darkest Variant of the color, nearly black; as a RGB HEX Integer - */ - final public int blackVariant; - - /** - * The Variant of the color that is used to represent the color normally; as a RGB HEX Integer - */ - final public int mediumVariant; - - /** - * Lightest Variant of the color, nearly white; as a RGB HEX Integer - */ - final public int whiteVariant; - - AEColor(String unlocalizedName, int blackHex, int medHex, int whiteHex) { - this.unlocalizedName = unlocalizedName; - blackVariant = blackHex; - mediumVariant = medHex; - whiteVariant = whiteHex; - } - - /** - * Logic to see which colors match each other.. special handle for Transparent - */ - public boolean matches(AEColor color) - { - return equals(Transparent) || color.equals(Transparent) || equals(color); - } - - @Override - public String toString() - { - return StatCollector.translateToLocal( unlocalizedName ); - } - -} +package appeng.api.util; + +import net.minecraft.util.StatCollector; + +/** + * List of all colors supported by AE, their names, and various colors for display. + * + * Should be the same order as Dyes, excluding Transparent. + */ +public enum AEColor +{ + + White("gui.appliedenergistics2.White", 0xBEBEBE, 0xDBDBDB, 0xFAFAFA), + + Orange("gui.appliedenergistics2.Orange", 0xF99739, 0xFAAE44, 0xF4DEC3), + + Magenta("gui.appliedenergistics2.Magenta", 0x821E82, 0xB82AB8, 0xC598C8), + + LightBlue("gui.appliedenergistics2.LightBlue", 0x628DCB, 0x82ACE7, 0xD8F6FF), + + Yellow("gui.appliedenergistics2.Yellow", 0xFFF7AA, 0xF8FF4A, 0xFFFFE8), + + Lime("gui.appliedenergistics2.Lime", 0x7CFF4A, 0xBBFF51, 0xE7F7D7), + + Pink("gui.appliedenergistics2.Pink", 0xDC8DB5, 0xF8B5D7, 0xF7DEEB), + + Gray("gui.appliedenergistics2.Gray", 0x7C7C7C, 0xA0A0A0, 0xC9C9C9), + + LightGray("gui.appliedenergistics2.LightGray", 0x9D9D9D, 0xCDCDCD, 0xEFEFEF), + + Cyan("gui.appliedenergistics2.Cyan", 0x2F9BA5, 0x51AAC6, 0xAEDDF4), + + Purple("gui.appliedenergistics2.Purple", 0x8230B2, 0xA453CE, 0xC7A3CC), + + Blue("gui.appliedenergistics2.Blue", 0x2D29A0, 0x514AFF, 0xDDE6FF), + + Brown("gui.appliedenergistics2.Brown", 0x724E35, 0xB7967F, 0xE0D2C8), + + Green("gui.appliedenergistics2.Green", 0x45A021, 0x60E32E, 0xE3F2E3), + + Red("gui.appliedenergistics2.Red", 0xA50029, 0xFF003C, 0xFFE6ED), + + Black("gui.appliedenergistics2.Black", 0x2B2B2B, 0x565656, 0x848484), + + Transparent("gui.appliedenergistics2.Fluix", 0x1B2344, 0x895CA8, 0xD7BBEC); + + /** + * Unlocalized name for color. + */ + final public String unlocalizedName; + + /** + * Darkest Variant of the color, nearly black; as a RGB HEX Integer + */ + final public int blackVariant; + + /** + * The Variant of the color that is used to represent the color normally; as a RGB HEX Integer + */ + final public int mediumVariant; + + /** + * Lightest Variant of the color, nearly white; as a RGB HEX Integer + */ + final public int whiteVariant; + + AEColor(String unlocalizedName, int blackHex, int medHex, int whiteHex) { + this.unlocalizedName = unlocalizedName; + blackVariant = blackHex; + mediumVariant = medHex; + whiteVariant = whiteHex; + } + + /** + * Logic to see which colors match each other.. special handle for Transparent + */ + public boolean matches(AEColor color) + { + return equals(Transparent) || color.equals(Transparent) || equals(color); + } + + @Override + public String toString() + { + return StatCollector.translateToLocal( unlocalizedName ); + } + +} diff --git a/src/api/java/appeng/api/util/AEColoredItemDefinition.java b/src/api/java/appeng/api/util/AEColoredItemDefinition.java index 6d7611b3..75a56f5e 100644 --- a/src/api/java/appeng/api/util/AEColoredItemDefinition.java +++ b/src/api/java/appeng/api/util/AEColoredItemDefinition.java @@ -1,47 +1,47 @@ -package appeng.api.util; - -import net.minecraft.block.Block; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.tileentity.TileEntity; - -public interface AEColoredItemDefinition -{ - - /** - * @return the {@link Block} Implementation if applicable - */ - Block block(AEColor color); - - /** - * @return the {@link Item} Implementation if applicable - */ - Item item(AEColor color); - - /** - * @return the {@link TileEntity} Class if applicable. - */ - Class entity(AEColor color); - - /** - * @return an {@link ItemStack} with specified quantity of this item. - */ - ItemStack stack(AEColor color, int stackSize); - - /** - * @param stackSize - * - stack size of the result. - * @return an array of all colors. - */ - ItemStack[] allStacks(int stackSize); - - /** - * Compare {@link ItemStack} with this {@link AEItemDefinition} - * - * @param color compared color of item - * @param comparableItem compared item - * @return true if the item stack is a matching item. - */ - boolean sameAs(AEColor color, ItemStack comparableItem); - -} +package appeng.api.util; + +import net.minecraft.block.Block; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; + +public interface AEColoredItemDefinition +{ + + /** + * @return the {@link Block} Implementation if applicable + */ + Block block(AEColor color); + + /** + * @return the {@link Item} Implementation if applicable + */ + Item item(AEColor color); + + /** + * @return the {@link TileEntity} Class if applicable. + */ + Class entity(AEColor color); + + /** + * @return an {@link ItemStack} with specified quantity of this item. + */ + ItemStack stack(AEColor color, int stackSize); + + /** + * @param stackSize + * - stack size of the result. + * @return an array of all colors. + */ + ItemStack[] allStacks(int stackSize); + + /** + * Compare {@link ItemStack} with this {@link AEItemDefinition} + * + * @param color compared color of item + * @param comparableItem compared item + * @return true if the item stack is a matching item. + */ + boolean sameAs(AEColor color, ItemStack comparableItem); + +} diff --git a/src/api/java/appeng/api/util/AEItemDefinition.java b/src/api/java/appeng/api/util/AEItemDefinition.java index 88002180..9fdd987c 100644 --- a/src/api/java/appeng/api/util/AEItemDefinition.java +++ b/src/api/java/appeng/api/util/AEItemDefinition.java @@ -1,54 +1,54 @@ -package appeng.api.util; - -import net.minecraft.block.Block; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.world.IBlockAccess; - -/** - * Gives easy access to different part of the various, items/blocks/materials in AE. - */ -public interface AEItemDefinition -{ - - /** - * @return the {@link Block} Implementation if applicable - */ - Block block(); - - /** - * @return the {@link Item} Implementation if applicable - */ - Item item(); - - /** - * @return the {@link TileEntity} Class if applicable. - */ - Class entity(); - - /** - * @return an {@link ItemStack} with specified quantity of this item. - */ - ItemStack stack(int stackSize); - - /** - * Compare {@link ItemStack} with this {@link AEItemDefinition} - * - * @param comparableItem compared item - * @return true if the item stack is a matching item. - */ - boolean sameAsStack(ItemStack comparableItem); - - /** - * Compare Block with world. - * - * @param world world of block - * @param x x pos of block - * @param y y pos of block - * @param z z pos of block - * - * @return if the block is placed in the world at the specific location. - */ - boolean sameAsBlock(IBlockAccess world, int x, int y, int z); -} +package appeng.api.util; + +import net.minecraft.block.Block; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.world.IBlockAccess; + +/** + * Gives easy access to different part of the various, items/blocks/materials in AE. + */ +public interface AEItemDefinition +{ + + /** + * @return the {@link Block} Implementation if applicable + */ + Block block(); + + /** + * @return the {@link Item} Implementation if applicable + */ + Item item(); + + /** + * @return the {@link TileEntity} Class if applicable. + */ + Class entity(); + + /** + * @return an {@link ItemStack} with specified quantity of this item. + */ + ItemStack stack(int stackSize); + + /** + * Compare {@link ItemStack} with this {@link AEItemDefinition} + * + * @param comparableItem compared item + * @return true if the item stack is a matching item. + */ + boolean sameAsStack(ItemStack comparableItem); + + /** + * Compare Block with world. + * + * @param world world of block + * @param x x pos of block + * @param y y pos of block + * @param z z pos of block + * + * @return if the block is placed in the world at the specific location. + */ + boolean sameAsBlock(IBlockAccess world, int x, int y, int z); +} diff --git a/src/api/java/appeng/api/util/ICommonTile.java b/src/api/java/appeng/api/util/ICommonTile.java index 0b34cc2b..2f8b3881 100644 --- a/src/api/java/appeng/api/util/ICommonTile.java +++ b/src/api/java/appeng/api/util/ICommonTile.java @@ -1,23 +1,23 @@ -package appeng.api.util; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -import java.util.ArrayList; - -public interface ICommonTile -{ - - /** - * implemented on AE's Tile Entities, Gets a list of drops that the entity will normally drop, this doesn't include - * the block itself. - * - * @param world world of tile entity - * @param x x pos of tile entity - * @param y y pos of tile entity - * @param z z pos of tile entity - * @param drops drops of tile entity - */ - void getDrops(World world, int x, int y, int z, ArrayList drops); - +package appeng.api.util; + +import net.minecraft.item.ItemStack; +import net.minecraft.world.World; + +import java.util.ArrayList; + +public interface ICommonTile +{ + + /** + * implemented on AE's Tile Entities, Gets a list of drops that the entity will normally drop, this doesn't include + * the block itself. + * + * @param world world of tile entity + * @param x x pos of tile entity + * @param y y pos of tile entity + * @param z z pos of tile entity + * @param drops drops of tile entity + */ + void getDrops(World world, int x, int y, int z, ArrayList drops); + } \ No newline at end of file diff --git a/src/api/java/appeng/api/util/IOrientableBlock.java b/src/api/java/appeng/api/util/IOrientableBlock.java index d4484924..84be3fc4 100644 --- a/src/api/java/appeng/api/util/IOrientableBlock.java +++ b/src/api/java/appeng/api/util/IOrientableBlock.java @@ -1,25 +1,25 @@ -package appeng.api.util; - -import net.minecraft.world.IBlockAccess; - -/** - * Implemented on many of AE's non Tile Entity Blocks as a way to get a IOrientable. - */ -public interface IOrientableBlock -{ - - /** - * @return if this block uses metadata to store its rotation. - */ - boolean usesMetadata(); - - /** - * @param world world of block - * @param x x pos of block - * @param y y pos of block - * @param z z pos of block - * @return a IOrientable if applicable - */ - IOrientable getOrientable(IBlockAccess world, int x, int y, int z); - +package appeng.api.util; + +import net.minecraft.world.IBlockAccess; + +/** + * Implemented on many of AE's non Tile Entity Blocks as a way to get a IOrientable. + */ +public interface IOrientableBlock +{ + + /** + * @return if this block uses metadata to store its rotation. + */ + boolean usesMetadata(); + + /** + * @param world world of block + * @param x x pos of block + * @param y y pos of block + * @param z z pos of block + * @return a IOrientable if applicable + */ + IOrientable getOrientable(IBlockAccess world, int x, int y, int z); + } \ No newline at end of file From b089ada9cb38caf1357e89c3ab9e1a27fa6708a9 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 15:24:40 -0500 Subject: [PATCH 13/95] Create .gitattributes --- .gitattributes | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..2deb6361 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,46 @@ +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto + +# +# The above will handle all files NOT found below +# +# These files are text and should be normalized (Convert crlf => lf) +*.md text +*.adoc text +*.textile text +*.mustache text +*.csv text +*.tab text +*.tsv text +*.css text +*.df text +*.htm text +*.html text +*.java text +*.js text +*.json text +*.jsp text +*.jspf text +*.properties text +*.sh text +*.sql text +*.svg text +*.tld text +*.txt text +*.xml text +*.sql text + +# These files are binary and should be left untouched +# (binary is a macro for -text -diff) +*.class binary +*.dll binary +*.ear binary +*.gif binary +*.ico binary +*.jar binary +*.jpg binary +*.jpeg binary +*.png binary +*.so binary +*.war binary From a819618a477ff06d326407ca5fbf07afa720324c Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 15:29:22 -0500 Subject: [PATCH 14/95] Add config for harvesting jungle wood when cocoa exists --- src/main/java/crazypants/enderio/config/Config.java | 5 ++++- .../enderio/machine/farm/farmers/CocoaFarmer.java | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/crazypants/enderio/config/Config.java b/src/main/java/crazypants/enderio/config/Config.java index 07052fbc..d741645f 100644 --- a/src/main/java/crazypants/enderio/config/Config.java +++ b/src/main/java/crazypants/enderio/config/Config.java @@ -263,7 +263,7 @@ public final class Config { public static boolean disableFarmNotification = false; public static boolean farmEssenceBerriesEnabled = true; public static boolean farmManaBeansEnabled = false; - + public static boolean farmHarvestJungleWhenCocoa = false; public static int magnetPowerUsePerSecondRF = 1; public static int magnetPowerCapacityRF = 100000; @@ -921,6 +921,9 @@ public final class Config { farmManaBeansEnabled = config.get(sectionFarm.name, "farmEssenceBerriesEnabled", farmManaBeansEnabled, "This setting controls whether mana beans from Thaumcraft can be harvested by the farm.").getBoolean(); + + farmHarvestJungleWhenCocoa = config.get(sectionFarm.name, "farmHarvestJungleWhenCocoa", farmHarvestJungleWhenCocoa, + "If this is enabled the farm will harvest jungle wood even if it has cocoa beans in its inventory.").getBoolean(); combustionGeneratorUseOpaqueModel = config.get(sectionAesthetic.name, "combustionGeneratorUseOpaqueModel", combustionGeneratorUseOpaqueModel, "If set to true: fluid will not be shown in combustion generator tanks. Improves FPS. ").getBoolean(combustionGeneratorUseOpaqueModel); diff --git a/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java b/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java index 964a53fb..4c519d94 100644 --- a/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java +++ b/src/main/java/crazypants/enderio/machine/farm/farmers/CocoaFarmer.java @@ -1,7 +1,5 @@ package crazypants.enderio.machine.farm.farmers; -import crazypants.enderio.machine.farm.TileFarmStation; -import crazypants.util.BlockCoord; import net.minecraft.block.Block; import net.minecraft.block.BlockLog; import net.minecraft.init.Blocks; @@ -10,6 +8,9 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.Direction; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; +import crazypants.enderio.config.Config; +import crazypants.enderio.machine.farm.TileFarmStation; +import crazypants.util.BlockCoord; public class CocoaFarmer extends CustomSeedFarmer { @@ -17,7 +18,9 @@ public class CocoaFarmer extends CustomSeedFarmer { super(Blocks.cocoa, new ItemStack(Items.dye,1,3)); this.requiresFarmland = false; - this.disableTreeFarm = true; + if (!Config.farmHarvestJungleWhenCocoa) { + this.disableTreeFarm = true; + } } @Override From 8843604edb93bd82b66a5d3f50038616852184e5 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 16:24:45 -0500 Subject: [PATCH 15/95] Fix fill gauge connecting on creative banks --- .../crazypants/enderio/machine/capbank/render/FillGauge.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/crazypants/enderio/machine/capbank/render/FillGauge.java b/src/main/java/crazypants/enderio/machine/capbank/render/FillGauge.java index 87a83358..2c3296ef 100644 --- a/src/main/java/crazypants/enderio/machine/capbank/render/FillGauge.java +++ b/src/main/java/crazypants/enderio/machine/capbank/render/FillGauge.java @@ -131,6 +131,11 @@ public class FillGauge implements IInfoRenderer { } private GaugeInfo getGaugeInfo(TileCapBank cb, ForgeDirection dir) { + + if (!cb.getType().isMultiblock()) { + return new GaugeInfo(1, 0); + } + int height = 1; int yPos = 0; BlockCoord loc = cb.getLocation(); From a75bcd18557626006a0992da2e2cdc03ff5ebb1b Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 16:31:21 -0500 Subject: [PATCH 16/95] Fix wrong behavior of berry bush harvester --- .../farm/farmers/NaturaBerryFarmer.java | 50 ++++++++++++------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/src/main/java/crazypants/enderio/machine/farm/farmers/NaturaBerryFarmer.java b/src/main/java/crazypants/enderio/machine/farm/farmers/NaturaBerryFarmer.java index 8dcdd929..6a38243a 100644 --- a/src/main/java/crazypants/enderio/machine/farm/farmers/NaturaBerryFarmer.java +++ b/src/main/java/crazypants/enderio/machine/farm/farmers/NaturaBerryFarmer.java @@ -18,7 +18,7 @@ public class NaturaBerryFarmer extends PickableFarmer { @Override public IHarvestResult harvestBlock(TileFarmStation farm, BlockCoord bc, Block block, int meta) { - + if(block != getPlantedBlock()) { return null; } @@ -26,28 +26,33 @@ public class NaturaBerryFarmer extends PickableFarmer { farm.setNotification(TileFarmStation.NOTIFICATION_NO_HOE); return null; } - - IHarvestResult res = new HarvestResult(); - + + IHarvestResult res = new HarvestResult(); + BlockCoord checkBlock = bc; - for(int i=0; i < 5 && farm.hasHoe(); i++) { + for (int i = 0; i < 5 && farm.hasHoe(); i++) { meta = farm.getBlockMeta(checkBlock); - IHarvestResult blockRes = super.harvestBlock(farm, checkBlock, block, meta); - - if(blockRes != null) { - res.getHarvestedBlocks().add(checkBlock); - List addToDrops = blockRes.getDrops(); - for(EntityItem stack : addToDrops) { - res.getDrops().add(stack); + block = farm.getBlock(checkBlock); + + if(super.canHarvest(farm, bc, block, meta)) { // redundant check because our canHarvest checks all 5 blocks so a bush may be invalid in the stack of 5 + IHarvestResult blockRes = super.harvestBlock(farm, checkBlock, block, meta); + + if(blockRes != null) { + res.getHarvestedBlocks().add(checkBlock); + List addToDrops = blockRes.getDrops(); + for (EntityItem stack : addToDrops) { + res.getDrops().add(stack); + } } } + checkBlock = checkBlock.getLocation(ForgeDirection.UP); } - + if(res.getHarvestedBlocks().isEmpty()) { return null; - } - + } + return res; } @@ -56,11 +61,18 @@ public class NaturaBerryFarmer extends PickableFarmer { if(!Config.farmEssenceBerriesEnabled && "tile.ore.berries.two".equals(block.getUnlocalizedName()) && meta == grownBlockMeta) { return false; } - + BlockCoord checkBlock = bc; - meta = farm.getBlockMeta(checkBlock); - block = checkBlock.getBlock(farm.getWorldObj()); - return super.canHarvest(farm, checkBlock, block, meta); + for (int i = 0; i < 5; i++) { + meta = farm.getBlockMeta(checkBlock); + block = checkBlock.getBlock(farm.getWorldObj()); + if(super.canHarvest(farm, checkBlock, block, meta)) { + return true; + } + checkBlock = checkBlock.getLocation(ForgeDirection.UP); + } + + return false; } } \ No newline at end of file From ff0d28df4adcb935967169d552fc291595043d22 Mon Sep 17 00:00:00 2001 From: Matthias Mann Date: Tue, 30 Dec 2014 23:19:26 +0100 Subject: [PATCH 17/95] allow SAG-Mill recipes to disable main output bonus per recipe --- .gitignore | 6 +++++- .../enderio/machine/ContinuousTask.java | 8 ++++++- .../enderio/machine/IMachineRecipe.java | 7 +++++++ .../enderio/machine/IPoweredTask.java | 5 ++++- .../enderio/machine/PoweredTask.java | 9 ++++++++ .../enderio/machine/PoweredTaskProgress.java | 6 ++++++ .../machine/alloy/VanillaSmeltingRecipe.java | 8 ++++++- .../machine/crusher/CrusherRecipeManager.java | 3 ++- .../enderio/machine/crusher/TileCrusher.java | 19 ++++++++++------- .../machine/painter/BasicPainterTemplate.java | 6 ++++++ .../machine/recipe/AbstractMachineRecipe.java | 9 ++++++++ .../machine/recipe/BasicManyToOneRecipe.java | 9 ++++++++ .../enderio/machine/recipe/IRecipe.java | 2 ++ .../enderio/machine/recipe/Recipe.java | 17 ++++++++++----- .../machine/recipe/RecipeBonusType.java | 7 +++++++ .../enderio/machine/recipe/RecipeConfig.java | 16 +++++++++++--- .../machine/recipe/RecipeConfigParser.java | 21 +++++++++++++++++++ .../soul/AbstractSoulBinderRecipe.java | 6 ++++++ .../machine/soul/SoulBinderSpawnerRecipe.java | 6 ++++++ .../enderio/machine/spawner/DummyRecipe.java | 8 ++++++- .../enderio/machine/vat/VatRecipe.java | 6 ++++++ 21 files changed, 162 insertions(+), 22 deletions(-) create mode 100644 src/main/java/crazypants/enderio/machine/recipe/RecipeBonusType.java diff --git a/.gitignore b/.gitignore index 2f1fd5c0..76db47ea 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,8 @@ /*.iml /*.ipr /*.iws -/atlassian-ide-plugin.xml \ No newline at end of file +/atlassian-ide-plugin.xml + +## gedit +*~ + diff --git a/src/main/java/crazypants/enderio/machine/ContinuousTask.java b/src/main/java/crazypants/enderio/machine/ContinuousTask.java index e4982b1e..7e3a03dd 100644 --- a/src/main/java/crazypants/enderio/machine/ContinuousTask.java +++ b/src/main/java/crazypants/enderio/machine/ContinuousTask.java @@ -1,6 +1,7 @@ package crazypants.enderio.machine; import crazypants.enderio.machine.IMachineRecipe.ResultStack; +import crazypants.enderio.machine.recipe.RecipeBonusType; import net.minecraft.nbt.NBTTagCompound; public class ContinuousTask implements IPoweredTask { @@ -49,8 +50,13 @@ public class ContinuousTask implements IPoweredTask { return 1; } + @Override + public RecipeBonusType getBonusType() { + return RecipeBonusType.NONE; + } + @Override public MachineRecipeInput[] getInputs() { return new MachineRecipeInput[0]; } -} \ No newline at end of file +} diff --git a/src/main/java/crazypants/enderio/machine/IMachineRecipe.java b/src/main/java/crazypants/enderio/machine/IMachineRecipe.java index 91c2401a..af1b347d 100644 --- a/src/main/java/crazypants/enderio/machine/IMachineRecipe.java +++ b/src/main/java/crazypants/enderio/machine/IMachineRecipe.java @@ -5,6 +5,8 @@ import java.util.List; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidStack; +import crazypants.enderio.machine.recipe.RecipeBonusType; + /** * A MachineRecipe implementation must be stateless, always returning the same * values given the same parameters. The 'in progress' recipe for a machine is @@ -34,6 +36,11 @@ public interface IMachineRecipe { */ int getEnergyRequired(MachineRecipeInput... inputs); + /** + * Returns the how bonus should be handled for this input + **/ + RecipeBonusType getBonusType(MachineRecipeInput... inputs); + /** * Only returns true if output can be generated using these inputs. If * partially complete inputs are provided (for example only one of two diff --git a/src/main/java/crazypants/enderio/machine/IPoweredTask.java b/src/main/java/crazypants/enderio/machine/IPoweredTask.java index 2da427a2..5f052193 100644 --- a/src/main/java/crazypants/enderio/machine/IPoweredTask.java +++ b/src/main/java/crazypants/enderio/machine/IPoweredTask.java @@ -2,6 +2,7 @@ package crazypants.enderio.machine; import net.minecraft.nbt.NBTTagCompound; import crazypants.enderio.machine.IMachineRecipe.ResultStack; +import crazypants.enderio.machine.recipe.RecipeBonusType; public interface IPoweredTask { @@ -17,10 +18,12 @@ public interface IPoweredTask { float getChance(); + RecipeBonusType getBonusType(); + void writeToNBT(NBTTagCompound nbtRoot); IMachineRecipe getRecipe(); public abstract MachineRecipeInput[] getInputs(); -} \ No newline at end of file +} diff --git a/src/main/java/crazypants/enderio/machine/PoweredTask.java b/src/main/java/crazypants/enderio/machine/PoweredTask.java index 5416367f..978b482c 100644 --- a/src/main/java/crazypants/enderio/machine/PoweredTask.java +++ b/src/main/java/crazypants/enderio/machine/PoweredTask.java @@ -7,6 +7,7 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.util.MathHelper; import crazypants.enderio.machine.IMachineRecipe.ResultStack; +import crazypants.enderio.machine.recipe.RecipeBonusType; public class PoweredTask implements IPoweredTask { @@ -22,6 +23,8 @@ public class PoweredTask implements IPoweredTask { private float requiredEnergy; + private RecipeBonusType bonusType; + private IMachineRecipe recipe; private float chance; @@ -57,6 +60,7 @@ public class PoweredTask implements IPoweredTask { this.usedEnergy = usedEnergy; this.chance = MathHelper.clamp_float(chance, 0, 1); requiredEnergy = recipe.getEnergyRequired(inputsIn); + bonusType = recipe.getBonusType(inputsIn); } @@ -115,6 +119,11 @@ public class PoweredTask implements IPoweredTask { this.chance = chance; } + @Override + public RecipeBonusType getBonusType() { + return bonusType; + } + /* (non-Javadoc) * @see crazypants.enderio.machine.IPoweredTask#writeToNBT(net.minecraft.nbt.NBTTagCompound) */ diff --git a/src/main/java/crazypants/enderio/machine/PoweredTaskProgress.java b/src/main/java/crazypants/enderio/machine/PoweredTaskProgress.java index f792ec49..1ccbdb7a 100644 --- a/src/main/java/crazypants/enderio/machine/PoweredTaskProgress.java +++ b/src/main/java/crazypants/enderio/machine/PoweredTaskProgress.java @@ -2,6 +2,7 @@ package crazypants.enderio.machine; import net.minecraft.nbt.NBTTagCompound; import crazypants.enderio.machine.IMachineRecipe.ResultStack; +import crazypants.enderio.machine.recipe.RecipeBonusType; /** * Client side stub for reporting progress. @@ -47,6 +48,11 @@ public class PoweredTaskProgress implements IPoweredTask { return 0; } + @Override + public RecipeBonusType getBonusType() { + return RecipeBonusType.NONE; + } + @Override public void writeToNBT(NBTTagCompound nbtRoot) { } diff --git a/src/main/java/crazypants/enderio/machine/alloy/VanillaSmeltingRecipe.java b/src/main/java/crazypants/enderio/machine/alloy/VanillaSmeltingRecipe.java index f22ba791..9acf50a1 100644 --- a/src/main/java/crazypants/enderio/machine/alloy/VanillaSmeltingRecipe.java +++ b/src/main/java/crazypants/enderio/machine/alloy/VanillaSmeltingRecipe.java @@ -17,6 +17,7 @@ import crazypants.enderio.machine.recipe.IRecipe; import crazypants.enderio.machine.recipe.Recipe; import crazypants.enderio.machine.recipe.RecipeInput; import crazypants.enderio.machine.recipe.RecipeOutput; +import crazypants.enderio.machine.recipe.RecipeBonusType; import crazypants.enderio.material.OreDictionaryPreferences; public class VanillaSmeltingRecipe implements IMachineRecipe { @@ -49,6 +50,11 @@ public class VanillaSmeltingRecipe implements IMachineRecipe { return numInputs * RF_PER_ITEM; } + @Override + public RecipeBonusType getBonusType(MachineRecipeInput... inputs) { + return RecipeBonusType.NONE; + } + private int getNumInputs(MachineRecipeInput[] inputs) { int numInputs = 0; for (MachineRecipeInput input : inputs) { @@ -171,7 +177,7 @@ public class VanillaSmeltingRecipe implements IMachineRecipe { for (Entry entry : metaList.entrySet()) { ItemStack output = entry.getValue(); output = OreDictionaryPreferences.instance.getPreferred(output); - result.add(new Recipe(new RecipeInput(entry.getKey()), RF_PER_ITEM, new RecipeOutput(output))); + result.add(new Recipe(new RecipeInput(entry.getKey()), RF_PER_ITEM, RecipeBonusType.NONE, new RecipeOutput(output))); } return result; } diff --git a/src/main/java/crazypants/enderio/machine/crusher/CrusherRecipeManager.java b/src/main/java/crazypants/enderio/machine/crusher/CrusherRecipeManager.java index ab297265..98b2f2ac 100644 --- a/src/main/java/crazypants/enderio/machine/crusher/CrusherRecipeManager.java +++ b/src/main/java/crazypants/enderio/machine/crusher/CrusherRecipeManager.java @@ -19,6 +19,7 @@ import crazypants.enderio.machine.recipe.RecipeConfig; import crazypants.enderio.machine.recipe.RecipeConfigParser; import crazypants.enderio.machine.recipe.RecipeInput; import crazypants.enderio.machine.recipe.RecipeOutput; +import crazypants.enderio.machine.recipe.RecipeBonusType; import crazypants.util.Util; public class CrusherRecipeManager { @@ -178,7 +179,7 @@ public class CrusherRecipeManager { if(input == null || output == null) { return; } - addRecipe(new Recipe(new RecipeInput(input, false), energyCost, output)); + addRecipe(new Recipe(new RecipeInput(input, false), energyCost, RecipeBonusType.MULTIPLY_OUTPUT, output)); } public void addRecipe(Recipe recipe) { diff --git a/src/main/java/crazypants/enderio/machine/crusher/TileCrusher.java b/src/main/java/crazypants/enderio/machine/crusher/TileCrusher.java index 7b1c0e82..359ea105 100644 --- a/src/main/java/crazypants/enderio/machine/crusher/TileCrusher.java +++ b/src/main/java/crazypants/enderio/machine/crusher/TileCrusher.java @@ -9,6 +9,7 @@ import crazypants.enderio.machine.IPoweredTask; import crazypants.enderio.machine.MachineRecipeInput; import crazypants.enderio.machine.PoweredTask; import crazypants.enderio.machine.SlotDefinition; +import crazypants.enderio.machine.recipe.RecipeBonusType; import crazypants.enderio.network.PacketHandler; public class TileCrusher extends AbstractPoweredTaskEntity { @@ -85,15 +86,17 @@ public class TileCrusher extends AbstractPoweredTaskEntity { IPoweredTask ct = currentTask; super.taskComplete(); //run it again if the ball says so - if(gb != null && useGrindingBall) { - float chance = random.nextFloat(); - float mul = gb.getGrindingMultiplier() - 1; - while (mul > 0) { - if(chance <= mul) { - currentTask = ct; - super.taskComplete(); + if(gb != null && useGrindingBall && ct != null) { + if(ct.getBonusType() == RecipeBonusType.MULTIPLY_OUTPUT) { + float chance = random.nextFloat(); + float mul = gb.getGrindingMultiplier() - 1; + while (mul > 0) { + if(chance <= mul) { + currentTask = ct; + super.taskComplete(); + } + mul--; } - mul--; } } } diff --git a/src/main/java/crazypants/enderio/machine/painter/BasicPainterTemplate.java b/src/main/java/crazypants/enderio/machine/painter/BasicPainterTemplate.java index 11a20ada..db9f1923 100644 --- a/src/main/java/crazypants/enderio/machine/painter/BasicPainterTemplate.java +++ b/src/main/java/crazypants/enderio/machine/painter/BasicPainterTemplate.java @@ -12,6 +12,7 @@ import crazypants.enderio.ModObject; import crazypants.enderio.config.Config; import crazypants.enderio.machine.IMachineRecipe; import crazypants.enderio.machine.MachineRecipeInput; +import crazypants.enderio.machine.recipe.RecipeBonusType; import crazypants.util.Util; public abstract class BasicPainterTemplate implements IMachineRecipe { @@ -29,6 +30,11 @@ public abstract class BasicPainterTemplate implements IMachineRecipe { return DEFAULT_ENERGY_PER_TASK; } + @Override + public RecipeBonusType getBonusType(MachineRecipeInput... inputs) { + return RecipeBonusType.NONE; + } + @Override public boolean isRecipe(MachineRecipeInput... inputs) { return isValidTarget(getTarget(inputs)) && isValidPaintSource(getPaintSource(inputs)); diff --git a/src/main/java/crazypants/enderio/machine/recipe/AbstractMachineRecipe.java b/src/main/java/crazypants/enderio/machine/recipe/AbstractMachineRecipe.java index 8484c85d..9edda6c8 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/AbstractMachineRecipe.java +++ b/src/main/java/crazypants/enderio/machine/recipe/AbstractMachineRecipe.java @@ -6,6 +6,7 @@ import java.util.List; import net.minecraft.item.ItemStack; import crazypants.enderio.machine.IMachineRecipe; import crazypants.enderio.machine.MachineRecipeInput; +import crazypants.enderio.machine.recipe.RecipeBonusType; public abstract class AbstractMachineRecipe implements IMachineRecipe { @@ -18,6 +19,14 @@ public abstract class AbstractMachineRecipe implements IMachineRecipe { return recipe == null ? 0 : recipe.getEnergyRequired(); } + public RecipeBonusType getBonusType(MachineRecipeInput... inputs) { + if(inputs == null || inputs.length <= 0) { + return RecipeBonusType.NONE; + } + IRecipe recipe = getRecipeForInputs(inputs); + return recipe == null ? RecipeBonusType.NONE : recipe.getBonusType(); + } + public abstract IRecipe getRecipeForInputs(MachineRecipeInput[] inputs); @Override diff --git a/src/main/java/crazypants/enderio/machine/recipe/BasicManyToOneRecipe.java b/src/main/java/crazypants/enderio/machine/recipe/BasicManyToOneRecipe.java index 854f5e00..b9d9f9c8 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/BasicManyToOneRecipe.java +++ b/src/main/java/crazypants/enderio/machine/recipe/BasicManyToOneRecipe.java @@ -9,6 +9,7 @@ import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidStack; import crazypants.enderio.ModObject; import crazypants.enderio.machine.MachineRecipeInput; +import crazypants.enderio.machine.recipe.RecipeBonusType; public class BasicManyToOneRecipe implements IManyToOneRecipe { @@ -17,6 +18,8 @@ public class BasicManyToOneRecipe implements IManyToOneRecipe { private final float expPerItem; + private final RecipeBonusType bonusType; + private final Recipe recipe; public BasicManyToOneRecipe(Recipe recipe) { @@ -24,6 +27,7 @@ public class BasicManyToOneRecipe implements IManyToOneRecipe { this.output = recipe.getOutputs()[0].getOutput().copy(); expPerItem = recipe.getOutputs()[0].getExperiance(); energyRequired = recipe.getEnergyRequired(); + bonusType = recipe.getBonusType(); } @Override @@ -77,6 +81,11 @@ public class BasicManyToOneRecipe implements IManyToOneRecipe { return energyRequired; } + @Override + public RecipeBonusType getBonusType() { + return bonusType; + } + @Override public RecipeOutput[] getOutputs() { return recipe.getOutputs(); diff --git a/src/main/java/crazypants/enderio/machine/recipe/IRecipe.java b/src/main/java/crazypants/enderio/machine/recipe/IRecipe.java index 18dceef3..5311afd1 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/IRecipe.java +++ b/src/main/java/crazypants/enderio/machine/recipe/IRecipe.java @@ -20,6 +20,8 @@ public interface IRecipe { List getInputFluidStacks(); + RecipeBonusType getBonusType(); + // boolean isInputForRecipe(List test); // // boolean isInputForRecipe(List test, List testFluids); diff --git a/src/main/java/crazypants/enderio/machine/recipe/Recipe.java b/src/main/java/crazypants/enderio/machine/recipe/Recipe.java index 5649009b..46d775ca 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/Recipe.java +++ b/src/main/java/crazypants/enderio/machine/recipe/Recipe.java @@ -14,19 +14,21 @@ public class Recipe implements IRecipe { private final RecipeInput[] inputs; private final RecipeOutput[] outputs; private final int energyRequired; + private final RecipeBonusType bonusType; - public Recipe(RecipeOutput output, int energyRequired, RecipeInput... input) { - this(input, new RecipeOutput[] { output }, energyRequired); + public Recipe(RecipeOutput output, int energyRequired, RecipeBonusType bonusType, RecipeInput... input) { + this(input, new RecipeOutput[] { output }, energyRequired, bonusType); } - public Recipe(RecipeInput input, int energyRequired, RecipeOutput... output) { - this(new RecipeInput[] { input }, output, energyRequired); + public Recipe(RecipeInput input, int energyRequired, RecipeBonusType bonusType, RecipeOutput... output) { + this(new RecipeInput[] { input }, output, energyRequired, bonusType); } - public Recipe(RecipeInput[] input, RecipeOutput[] output, int energyRequired) { + public Recipe(RecipeInput[] input, RecipeOutput[] output, int energyRequired, RecipeBonusType bonusType) { this.inputs = input; this.outputs = output; this.energyRequired = energyRequired; + this.bonusType = bonusType; } @Override @@ -145,6 +147,11 @@ public class Recipe implements IRecipe { return outputs; } + @Override + public RecipeBonusType getBonusType() { + return bonusType; + } + public boolean hasOuput(ItemStack result) { if(result == null) { return false; diff --git a/src/main/java/crazypants/enderio/machine/recipe/RecipeBonusType.java b/src/main/java/crazypants/enderio/machine/recipe/RecipeBonusType.java new file mode 100644 index 00000000..30c2a3cc --- /dev/null +++ b/src/main/java/crazypants/enderio/machine/recipe/RecipeBonusType.java @@ -0,0 +1,7 @@ +package crazypants.enderio.machine.recipe; + +public enum RecipeBonusType { + NONE, + MULTIPLY_OUTPUT, + CHANCE_ONLY +} diff --git a/src/main/java/crazypants/enderio/machine/recipe/RecipeConfig.java b/src/main/java/crazypants/enderio/machine/recipe/RecipeConfig.java index 6d9012e5..6bd0b3ef 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/RecipeConfig.java +++ b/src/main/java/crazypants/enderio/machine/recipe/RecipeConfig.java @@ -284,6 +284,8 @@ public class RecipeConfig { private int energyRequired; + private RecipeBonusType bonusType = RecipeBonusType.MULTIPLY_OUTPUT; + private String name; private RecipeElement(String name) { @@ -309,11 +311,11 @@ public class RecipeConfig { List result = new ArrayList(); if(isRecipePerInput) { for (RecipeInput input : inputs) { - result.add(new Recipe(input, energyRequired, outputArr)); + result.add(new Recipe(input, energyRequired, bonusType, outputArr)); } } else { for (RecipeOutput output : outputs) { - result.add(new Recipe(output, energyRequired, inputArr)); + result.add(new Recipe(output, energyRequired, bonusType, inputArr)); } } return result; @@ -331,9 +333,17 @@ public class RecipeConfig { this.energyRequired = energyRequired; } + public RecipeBonusType getBonusType() { + return bonusType; + } + + public void setBonusType(RecipeBonusType bonusType) { + this.bonusType = bonusType; + } + @Override public String toString() { - return "Recipe [input=" + inputs + ", outputs=" + outputs + ", energyRequired=" + energyRequired + "]"; + return "Recipe [input=" + inputs + ", outputs=" + outputs + ", energyRequired=" + energyRequired + ", bonusType=" + bonusType + "]"; } } diff --git a/src/main/java/crazypants/enderio/machine/recipe/RecipeConfigParser.java b/src/main/java/crazypants/enderio/machine/recipe/RecipeConfigParser.java index 8b54ca81..b9c1c7b2 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/RecipeConfigParser.java +++ b/src/main/java/crazypants/enderio/machine/recipe/RecipeConfigParser.java @@ -5,6 +5,8 @@ import java.io.File; import java.io.FileInputStream; import java.io.StringReader; +import java.util.Locale; + import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; @@ -48,6 +50,7 @@ public class RecipeConfigParser extends DefaultHandler { public static final String AT_DUMP_ITEMS = "modObjects"; public static final String AT_ORE_DICT = "oreDictionary"; public static final String AT_ENERGY_COST = "energyCost"; + public static final String AT_BONUS_TYPE = "bonusType"; public static final String AT_ITEM_META = "itemMeta"; public static final String AT_ITEM_NAME = "itemName"; public static final String AT_MOD_ID = "modID"; @@ -250,6 +253,7 @@ public class RecipeConfigParser extends DefaultHandler { } recipe = recipeGroup.createRecipe(name); recipe.setEnergyRequired(getIntValue(AT_ENERGY_COST, attributes, CrusherRecipeManager.ORE_ENERGY_COST)); + recipe.setBonusType(getEnumValue(AT_BONUS_TYPE, attributes, RecipeBonusType.class, RecipeBonusType.MULTIPLY_OUTPUT)); return; } @@ -464,6 +468,23 @@ public class RecipeConfigParser extends DefaultHandler { return val; } + public static > E getEnumValue(String qName, Attributes attributes, Class clazz, E def) { + String val = attributes.getValue(qName); + if(val == null) { + return def; + } + val = val.trim(); + if(val.length() <= 0) { + return def; + } + val = val.toUpperCase(Locale.ENGLISH); + try { + return Enum.valueOf(clazz, val); + } catch(IllegalArgumentException ex) { + return def; + } + } + public static boolean hasAttribute(String att, Attributes attributes) { return attributes.getValue(att) != null; } diff --git a/src/main/java/crazypants/enderio/machine/soul/AbstractSoulBinderRecipe.java b/src/main/java/crazypants/enderio/machine/soul/AbstractSoulBinderRecipe.java index 860b4a3f..426a4e54 100644 --- a/src/main/java/crazypants/enderio/machine/soul/AbstractSoulBinderRecipe.java +++ b/src/main/java/crazypants/enderio/machine/soul/AbstractSoulBinderRecipe.java @@ -13,6 +13,7 @@ import crazypants.enderio.config.Config; import crazypants.enderio.machine.IMachineRecipe; import crazypants.enderio.machine.MachineRecipeInput; import crazypants.enderio.machine.IMachineRecipe.ResultStack; +import crazypants.enderio.machine.recipe.RecipeBonusType; import crazypants.enderio.material.FrankenSkull; public abstract class AbstractSoulBinderRecipe implements IMachineRecipe, ISoulBinderRecipe { @@ -54,6 +55,11 @@ public abstract class AbstractSoulBinderRecipe implements IMachineRecipe, ISoulB return getEnergyRequired(); } + @Override + public RecipeBonusType getBonusType(MachineRecipeInput... inputs) { + return RecipeBonusType.NONE; + } + @Override public boolean isRecipe(MachineRecipeInput... inputs) { int validCount = 0; diff --git a/src/main/java/crazypants/enderio/machine/soul/SoulBinderSpawnerRecipe.java b/src/main/java/crazypants/enderio/machine/soul/SoulBinderSpawnerRecipe.java index 4f90ba7d..f13703ee 100644 --- a/src/main/java/crazypants/enderio/machine/soul/SoulBinderSpawnerRecipe.java +++ b/src/main/java/crazypants/enderio/machine/soul/SoulBinderSpawnerRecipe.java @@ -10,6 +10,7 @@ import crazypants.enderio.config.Config; import crazypants.enderio.machine.IMachineRecipe; import crazypants.enderio.machine.MachineRecipeInput; import crazypants.enderio.machine.spawner.PoweredSpawnerConfig; +import crazypants.enderio.machine.recipe.RecipeBonusType; import crazypants.util.EntityUtil; public class SoulBinderSpawnerRecipe implements IMachineRecipe, ISoulBinderRecipe { @@ -26,6 +27,11 @@ public class SoulBinderSpawnerRecipe implements IMachineRecipe, ISoulBinderRecip return Config.soulBinderBrokenSpawnerRF; } + @Override + public RecipeBonusType getBonusType(MachineRecipeInput... inputs) { + return RecipeBonusType.NONE; + } + @Override public int getExperienceRequired() { return Config.soulBinderBrokenSpawnerLevels; diff --git a/src/main/java/crazypants/enderio/machine/spawner/DummyRecipe.java b/src/main/java/crazypants/enderio/machine/spawner/DummyRecipe.java index f3f3444d..790313a2 100644 --- a/src/main/java/crazypants/enderio/machine/spawner/DummyRecipe.java +++ b/src/main/java/crazypants/enderio/machine/spawner/DummyRecipe.java @@ -7,6 +7,7 @@ import net.minecraft.item.ItemStack; import crazypants.enderio.ModObject; import crazypants.enderio.machine.IMachineRecipe; import crazypants.enderio.machine.MachineRecipeInput; +import crazypants.enderio.machine.recipe.RecipeBonusType; public class DummyRecipe implements IMachineRecipe { @@ -31,6 +32,11 @@ public class DummyRecipe implements IMachineRecipe { return new ResultStack[0]; } + @Override + public RecipeBonusType getBonusType(MachineRecipeInput... inputs) { + return RecipeBonusType.NONE; + } + @Override public float getExperienceForOutput(ItemStack output) { return 0; @@ -51,4 +57,4 @@ public class DummyRecipe implements IMachineRecipe { return Collections.emptyList(); } -} \ No newline at end of file +} diff --git a/src/main/java/crazypants/enderio/machine/vat/VatRecipe.java b/src/main/java/crazypants/enderio/machine/vat/VatRecipe.java index ddccd02d..951c0eb9 100644 --- a/src/main/java/crazypants/enderio/machine/vat/VatRecipe.java +++ b/src/main/java/crazypants/enderio/machine/vat/VatRecipe.java @@ -10,6 +10,7 @@ import crazypants.enderio.machine.MachineRecipeInput; import crazypants.enderio.machine.recipe.IRecipe; import crazypants.enderio.machine.recipe.RecipeInput; import crazypants.enderio.machine.recipe.RecipeOutput; +import crazypants.enderio.machine.recipe.RecipeBonusType; public class VatRecipe implements IRecipe { @@ -79,6 +80,11 @@ public class VatRecipe implements IRecipe { return inputStacks; } + @Override + public RecipeBonusType getBonusType() { + return RecipeBonusType.NONE; + } + @Override public boolean isValidInput(int slot, ItemStack item) { if(item == null) { From 4b16659e6c45b4259ec4756777fa6036102888d0 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 17:30:42 -0500 Subject: [PATCH 18/95] Fix crash when reservoir placed at y = 0 --- .../crazypants/enderio/machine/reservoir/BlockReservoir.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/crazypants/enderio/machine/reservoir/BlockReservoir.java b/src/main/java/crazypants/enderio/machine/reservoir/BlockReservoir.java index fc8dabcc..8c0599da 100644 --- a/src/main/java/crazypants/enderio/machine/reservoir/BlockReservoir.java +++ b/src/main/java/crazypants/enderio/machine/reservoir/BlockReservoir.java @@ -214,6 +214,10 @@ public class BlockReservoir extends BlockContainer implements IResourceTooltipPr @Override @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int blockSide) { + if (y < 0 || y >= 256) { // getTileEntity is not safe for out of bounds coords + return false; + } + TileEntity te = world.getTileEntity(x, y, z); if(!(te instanceof TileReservoir)) { return true; From efbbffde768c5cb1afcadecbe5ebf8821503ffcd Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 17:48:40 -0500 Subject: [PATCH 19/95] Add buffer textures --- .../textures/blocks/blockBufferCreative.png | Bin 0 -> 1272 bytes .../textures/blocks/blockBufferItem.png | Bin 0 -> 1380 bytes .../textures/blocks/blockBufferOmni.png | Bin 0 -> 1290 bytes .../textures/blocks/blockBufferPower.png | Bin 0 -> 1104 bytes .../enderio/machine/buffer/BlockBuffer.java | 36 ++++++++++++------ 5 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 resources/assets/enderio/textures/blocks/blockBufferCreative.png create mode 100644 resources/assets/enderio/textures/blocks/blockBufferItem.png create mode 100644 resources/assets/enderio/textures/blocks/blockBufferOmni.png create mode 100644 resources/assets/enderio/textures/blocks/blockBufferPower.png diff --git a/resources/assets/enderio/textures/blocks/blockBufferCreative.png b/resources/assets/enderio/textures/blocks/blockBufferCreative.png new file mode 100644 index 0000000000000000000000000000000000000000..687230ab0f69adf113b065b027c422037486fb56 GIT binary patch literal 1272 zcmVf*`&t=!^as|APNVP<-`C6qRbV)kX24R;kts z+iIJu{FQ>g^2J)J-Ou8~2hElxh)Zn#O&`AbOtXolep176nw@f?n5jBSoj^V9Dt@ zpvYiH8d;VTzr?l%0TL={5{lvCCVhnrB`CAJvNa7g?RMZy2RGp`ZZaO6iVg!rw}ovY zuBgeYm;jUTSU9BGFMeE%li4i`5_+i;>I%HpDcQ$w{`vH|cPa!?ra$N1Mz0Ravdk9x z!H#vO-mmZM@0ZXA?$}omomK*ka%ovYCm_)Jph}d| z;C73yPDpBP^AD{CIba!2&s_jr0kk8~?{yaE+56+LRFR=L_>`frae;x+k!9Jr;|2Kf z#;~RhOx8w`r9G7U6(+o1)$AQ$0|{veJKf;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#CWRHW%M0yHBmguv zg@LARzx{b}dv|v_oo*i#r{qO|F(i3`6f!EE3?jzWR7bGRY}}6s;9G+<{qR;XnN0Bc z#^vkPa})+e*;1HG(H&}x^cIJl55j*eeB&5Hw{wwClIArH;wIuLDmdZv}s3ce<1WuL;CUXlctSr9f$ZX5I1)r{w0n@i^607yCZCsyWqDGJzbUvh-R;i+fN$7IY^BCwUa#IZX#=jb>!k|T289ac^?MBufgh1=NtXHy^@J(TshBj-db4|#H| zMxSJ2heUL?Sa?3|&&w`2c4!&>EDSgNpw?mcosOpjWd8EYw`+g%?bUuhMf)qSzY?#g z)4kYDI|@sX1VzR7WbVa*WPH#E23wsV*A%7x1A_OCFu9PVK>z>%07*qoM6N<$f@ZK| ABme*a literal 0 HcmV?d00001 diff --git a/resources/assets/enderio/textures/blocks/blockBufferPower.png b/resources/assets/enderio/textures/blocks/blockBufferPower.png new file mode 100644 index 0000000000000000000000000000000000000000..dbb0ce3a7ae200f0c0da188a3890030d13ff6e71 GIT binary patch literal 1104 zcmV-W1h4yvP)3VM zomqRn`L%67U0*xrED^qq!M9NY;6A*7p2+7Bq?yLj6IUg&pC^+F5vqz%9AhN;5c~Xz zxViM8moWu^_dfibBk6Trk4DYeS<_&5)^H2Mz-dO!h^Xf084~752E$>^`m)*<4XBs~ zRU#KDeAJEo((vUHGoULAx-99l$dTI5tXlT8f9Eo8e)D;~yK5gS$%&4h9YdQ8;_W$m`R{o#Ph&t?zSCHq*OODUh_eUX5Yt3^_Z zQrpcIr85&T(DLL;%Gv=f2UZh1%dcF%Ks-nG{QUgl;$ppCBh1GS?~xOVONuqPh?NV4 z!PNl~pmDYdMJLj!Q>GXYZ7~@ua$`7+lai*g6T%N~hZQy>_>7=Tjg>X|&LW7Jjcft< zLcZ_2=miHwQ3}?RO{Nb(HV*s@yk(KVSCx}#5Ll$BGL5=`X#9G7Wv%*B!v;M77bZpZ z-wg-Y|BOLk^u){+)r}Qb$MP_yZCl7(v7luroK-mg(?+tcxQ?7EIqp8*0gr!c4M|4KJnMZ7Qopr3Ik@|^G(1CuF{ z`*z-*N@v)d$@xIRNiJl>j$F+a1Q%)88B+l^oySH9TJ{;UbkLv8X1-Vyl>~8jaJmOc z5%$T-cHMIj*B?mbt0x!$-~U>zc*p*|UN2XxUY0w#aENR= zF$(!ndRe@3MBse`FCNUq%(=R}%%g%dQ0Z(pV}vuyOf)JiK4(VpWJFWf_;<72z8R07 z*3dwM$QJ@!f&XrAzjESecoF>W?pyRt&;0-+yatKx?CQcraYSc!Qcy2(oDNyNf+V7B zJRn&KApTHOobF~V5y;U4o(G^iAiX**rB252C1r*i(cj}Ss{=VNeR=G3`~)%F@r!zq zod%w#WME>F<=eI1d~K06Wp3(~SFgl9cgmljv_J#^n~^E+$vi4=8L6(afb}P63j6~Q WNV{4PJB#Z80000 implements IFa res.init(); return res; } - + + private static final String[] textureNames = new String[] { "blockBufferItem", "blockBufferPower", "blockBufferOmni", "blockBufferCreative" }; + @SideOnly(Side.CLIENT) + private IIcon[] textures; + private BlockBuffer() { super(ModObject.blockBuffer, TileBuffer.class); - setBlockTextureName("enderio:blockBuffer"); } @Override @@ -71,22 +76,27 @@ public class BlockBuffer extends AbstractMachineBlock implements IFa protected int getGuiId() { return GuiHandler.GUI_ID_BUFFER; } - + + @Override + @SideOnly(Side.CLIENT) + public void registerBlockIcons(IIconRegister iIconRegister) { + super.registerBlockIcons(iIconRegister); + textures = new IIcon[textureNames.length]; + for (int i = 0; i < textureNames.length; i++) { + textures[i] = iIconRegister.registerIcon("enderio:" + textureNames[i]); + } + } + @Override protected String getMachineFrontIconKey(boolean active) { - return this.textureName; + return getSideIconKey(active); } @Override - protected String getBackIconKey(boolean active) { - return getMachineFrontIconKey(active); + public IIcon getIcon(int blockSide, int blockMeta) { + return blockSide > 1 ? textures[blockMeta] : super.getIcon(blockSide, blockMeta); } - - @Override - protected String getSideIconKey(boolean active) { - return getMachineFrontIconKey(active); - } - + @Override public IIcon getIcon(IBlockAccess world, int x, int y, int z, int blockSide) { TileEntity te = world.getTileEntity(x, y, z); @@ -94,6 +104,8 @@ public class BlockBuffer extends AbstractMachineBlock implements IFa TileBuffer tef = (TileBuffer) te; if(tef.getSourceBlock() != null) { return tef.getSourceBlock().getIcon(blockSide, tef.getSourceBlockMetadata()); + } else if (blockSide > 1){ + return textures[world.getBlockMetadata(x, y, z)]; } } return super.getIcon(world, x, y, z, blockSide); From d14640b82aa805a826a349d905d169c04c28d39b Mon Sep 17 00:00:00 2001 From: Matthias Mann Date: Wed, 31 Dec 2014 00:38:14 +0100 Subject: [PATCH 20/95] added ExNihilo recipes for the SAG-Mill --- .../enderio/config/SAGMillRecipes_Core.xml | 163 ++++++++++++++++++ 1 file changed, 163 insertions(+) diff --git a/resources/assets/enderio/config/SAGMillRecipes_Core.xml b/resources/assets/enderio/config/SAGMillRecipes_Core.xml index 89f550ac..5d3ee95a 100644 --- a/resources/assets/enderio/config/SAGMillRecipes_Core.xml +++ b/resources/assets/enderio/config/SAGMillRecipes_Core.xml @@ -2176,6 +2176,169 @@ addOreDictionaryTooltips=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 82eafe917a42425d4b7176674d91c60bd09ac2cb Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 21:59:15 -0500 Subject: [PATCH 21/95] Update release notes --- ReleaseNotes.txt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 3e74e149..ac57af39 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -9,16 +9,18 @@ New - Can be painted and has connected textures with Chisel. - #32 Add connected photovoltaic panels. Will now form a multiblock and generate/emit power as a cohesive unit. - Add default recipe for the "Repair" enchant from Thaumcraft -- Add support for old and new chisel versions -- **REMOVE AE2 rv1 SUPPORT COMPLETELY** -- Add farming support for cocoa (hilburn) -- Add farming support for mana beans - disabled by default (hilburn) -- Add a percentage tooltip to the grinding ball remaining bar -- Farm axe detection should now support most modded axes -- Add farming station support for giant mushrooms (hilburn) Changes - #1456 Wireless Charger can be deactivated with redstone +- Add support for old and new chisel versions +- Add farming support for cocoa (hilburn) +- Add farming support for mana beans - disabled by default (hilburn) +- Add farming station support for giant mushrooms (hilburn) +- Add a percentage tooltip to the grinding ball remaining bar +- **REMOVE AE2 rv1 SUPPORT COMPLETELY** +- Farm axe detection should now support most modded axes +- Add ExNihilo recipes to SAG mill default recipes (MatthiasM2) +- Add "modes" for SAG mill bonuses, allow you to disable the main output bonus (MatthiasM2) Bugs - Fix obelisk hovering item being stuttery @@ -36,6 +38,7 @@ Bugs - #1416 Fix advanced item filter not matching some bees properly (hilburn) - Fix obelisk hovering item rendering being broken in fast graphics mode - Fix grinding ball duration bar not rendering sometimes +- Fix fill gauge connecting on creative capacitor banks ------------------------------------------------------ Version 2.2.5 From 9fc63d98c22aad0dadbf33262cb7f67caca451e3 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 23:19:16 -0500 Subject: [PATCH 22/95] Add farm hoe whitelist --- src/main/java/crazypants/enderio/EnderIO.java | 2 ++ .../crazypants/enderio/config/Config.java | 24 ++++++++++++++++++- .../enderio/machine/farm/TileFarmStation.java | 13 +++++++++- 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/main/java/crazypants/enderio/EnderIO.java b/src/main/java/crazypants/enderio/EnderIO.java index f1571606..e95be426 100644 --- a/src/main/java/crazypants/enderio/EnderIO.java +++ b/src/main/java/crazypants/enderio/EnderIO.java @@ -576,6 +576,8 @@ public class EnderIO { @EventHandler public void postInit(FMLPostInitializationEvent event) { + Config.postInit(); + //Regsiter the enchants Enchantments.getInstance(); diff --git a/src/main/java/crazypants/enderio/config/Config.java b/src/main/java/crazypants/enderio/config/Config.java index d741645f..c4159a6f 100644 --- a/src/main/java/crazypants/enderio/config/Config.java +++ b/src/main/java/crazypants/enderio/config/Config.java @@ -4,6 +4,7 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import net.minecraft.item.ItemStack; import net.minecraftforge.common.config.Configuration; import tterrag.core.common.event.ConfigFileChangedEvent; import cpw.mods.fml.client.event.ConfigChangedEvent.OnConfigChangedEvent; @@ -11,6 +12,7 @@ import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Optional.Method; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent; +import cpw.mods.fml.common.registry.GameRegistry; import crazypants.enderio.EnderIO; import crazypants.enderio.Log; import crazypants.vecmath.VecmathUtil; @@ -264,6 +266,14 @@ public final class Config { public static boolean farmEssenceBerriesEnabled = true; public static boolean farmManaBeansEnabled = false; public static boolean farmHarvestJungleWhenCocoa = false; + public static String[] hoeStrings = new String[] { + "minecraft:wooden_hoe", "minecraft:stone_hoe", "minecraft:iron_hoe", "minecraft:diamond_hoe", "minecraft:golden_hoe", + "MekanismTools:ObsidianHoe", "MekanismTools:LapisLazuliHoe", "MekanismTools:OsmiumHoe", "MekanismTools:BronzeHoe", "MekanismTools:GlowstoneHoe", "MekanismTools:SteelHoe", + "Steamcraft:hoeBrass", "Steamcraft:hoeGildedGold", + "Railcraft:tool.steel.hoe", + "TConstruct:mattock" + }; + public static ItemStack[] farmHoes = new ItemStack[0]; public static int magnetPowerUsePerSecondRF = 1; public static int magnetPowerCapacityRF = 100000; @@ -440,6 +450,7 @@ public final class Config { if(event.modID.equals(EnderIO.MODID)) { Log.info("Updating config..."); syncConfig(false); + postInit(); } } @@ -450,6 +461,7 @@ public final class Config { Log.info("Updating config..."); syncConfig(true); event.setSuccessful(); + postInit(); } } @@ -925,6 +937,9 @@ public final class Config { farmHarvestJungleWhenCocoa = config.get(sectionFarm.name, "farmHarvestJungleWhenCocoa", farmHarvestJungleWhenCocoa, "If this is enabled the farm will harvest jungle wood even if it has cocoa beans in its inventory.").getBoolean(); + hoeStrings = config.get(sectionFarm.name, "farmHoes", hoeStrings, + "Use this to specify items that can be hoes in the farming station. Use the registry name (eg. modid:name).").getStringList(); + combustionGeneratorUseOpaqueModel = config.get(sectionAesthetic.name, "combustionGeneratorUseOpaqueModel", combustionGeneratorUseOpaqueModel, "If set to true: fluid will not be shown in combustion generator tanks. Improves FPS. ").getBoolean(combustionGeneratorUseOpaqueModel); @@ -1107,7 +1122,14 @@ public final class Config { } + public static void postInit() { + farmHoes = new ItemStack[hoeStrings.length]; + for (int i = 0; i < Config.hoeStrings.length; i++) { + String[] data = hoeStrings[i].split(":"); + farmHoes[i] = GameRegistry.findItemStack(data[0], data[1], 1); + } + } + private Config() { } - } diff --git a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java index 15dd76aa..5c4cd708 100644 --- a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java +++ b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java @@ -16,6 +16,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.server.MinecraftServer; import net.minecraftforge.common.util.ForgeDirection; +import net.minecraftforge.oredict.OreDictionary; import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint; import crazypants.enderio.EnderIO; import crazypants.enderio.ModObject; @@ -38,7 +39,17 @@ import crazypants.util.Lang; public class TileFarmStation extends AbstractPoweredTaskEntity { public enum ToolType { - HOE { boolean match(ItemStack item) { return item.getItem() instanceof ItemHoe; }}, + HOE { + boolean match(ItemStack item) { + for (ItemStack stack : Config.farmHoes) { + if (stack != null && OreDictionary.itemMatches(item, stack, false)) { + return true; + } + } + return false; + } + }, + AXE { boolean match(ItemStack item) { return item.getItem().getHarvestLevel(item, "axe") > 0; }}, TREETAP { boolean match(ItemStack item) { return item.getItem().getClass() == RubberTreeFarmerIC2.treeTap;}}; From cd93ab01ffb191085be5d39ce992be2e26b460fc Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 23:43:59 -0500 Subject: [PATCH 23/95] #1490 Add SAG mill recipe for charged certus crystals --- resources/assets/enderio/config/SAGMillRecipes_Core.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/assets/enderio/config/SAGMillRecipes_Core.xml b/resources/assets/enderio/config/SAGMillRecipes_Core.xml index 5d3ee95a..12610e97 100644 --- a/resources/assets/enderio/config/SAGMillRecipes_Core.xml +++ b/resources/assets/enderio/config/SAGMillRecipes_Core.xml @@ -688,6 +688,15 @@ addOreDictionaryTooltips=true
+ + + + + + + + + From a6d6a6f82569a9d6faab9260ea73d061b8765e60 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 30 Dec 2014 23:48:53 -0500 Subject: [PATCH 24/95] Update release notes. Remove beta tag. --- ReleaseNotes.txt | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index ac57af39..45b34ad7 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -21,6 +21,8 @@ Changes - Farm axe detection should now support most modded axes - Add ExNihilo recipes to SAG mill default recipes (MatthiasM2) - Add "modes" for SAG mill bonuses, allow you to disable the main output bonus (MatthiasM2) +- Add whitelist for hoes supported by farming station +- #1490 Add SAG mill recipe for charged certus quartz crystals Bugs - Fix obelisk hovering item being stuttery diff --git a/gradle.properties b/gradle.properties index 46ac3d52..26e5fdae 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ forge_version=10.13.0.1208 mod_version=2.2.6 #Comment out this line to get rid of the appendix -mod_appendix=beta +#mod_appendix=beta buildcraft_version=6.1.5 waila_version=1.5.6a_1.7.10 From 16b546c2b2a62341536cb832ce6715e6426e4ce4 Mon Sep 17 00:00:00 2001 From: hilburn Date: Wed, 31 Dec 2014 10:16:24 +0000 Subject: [PATCH 25/95] Eep config copy-paste fail --- src/main/java/crazypants/enderio/config/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/config/Config.java b/src/main/java/crazypants/enderio/config/Config.java index 07052fbc..58e314fe 100644 --- a/src/main/java/crazypants/enderio/config/Config.java +++ b/src/main/java/crazypants/enderio/config/Config.java @@ -919,7 +919,7 @@ public final class Config { farmEssenceBerriesEnabled = config.get(sectionFarm.name, "farmEssenceBerriesEnabled", farmEssenceBerriesEnabled, "This setting controls whether essence berry bushes from TiC can be harvested by the farm.").getBoolean(); - farmManaBeansEnabled = config.get(sectionFarm.name, "farmEssenceBerriesEnabled", farmManaBeansEnabled, + farmManaBeansEnabled = config.get(sectionFarm.name, "farmManaBeansEnabled", farmManaBeansEnabled, "This setting controls whether mana beans from Thaumcraft can be harvested by the farm.").getBoolean(); combustionGeneratorUseOpaqueModel = config.get(sectionAesthetic.name, "combustionGeneratorUseOpaqueModel", combustionGeneratorUseOpaqueModel, From e658c417462686e48bf4f770ade3708f4fe10214 Mon Sep 17 00:00:00 2001 From: hilburn Date: Wed, 31 Dec 2014 10:50:41 +0000 Subject: [PATCH 26/95] Fixes #1538 and minor performance improvements --- src/main/java/crazypants/enderio/config/Config.java | 8 +++++--- .../crazypants/enderio/machine/farm/TileFarmStation.java | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/crazypants/enderio/config/Config.java b/src/main/java/crazypants/enderio/config/Config.java index 1f303f6a..e2988135 100644 --- a/src/main/java/crazypants/enderio/config/Config.java +++ b/src/main/java/crazypants/enderio/config/Config.java @@ -2,7 +2,9 @@ package crazypants.enderio.config; import java.io.File; import java.util.ArrayList; +import java.util.HashSet; import java.util.List; +import java.util.Set; import net.minecraft.item.ItemStack; import net.minecraftforge.common.config.Configuration; @@ -273,7 +275,7 @@ public final class Config { "Railcraft:tool.steel.hoe", "TConstruct:mattock" }; - public static ItemStack[] farmHoes = new ItemStack[0]; + public static Set farmHoes = new HashSet(); public static int magnetPowerUsePerSecondRF = 1; public static int magnetPowerCapacityRF = 100000; @@ -1123,10 +1125,10 @@ public final class Config { } public static void postInit() { - farmHoes = new ItemStack[hoeStrings.length]; for (int i = 0; i < Config.hoeStrings.length; i++) { String[] data = hoeStrings[i].split(":"); - farmHoes[i] = GameRegistry.findItemStack(data[0], data[1], 1); + ItemStack hoe = GameRegistry.findItemStack(data[0], data[1], 1); + if (hoe!=null) farmHoes.add(hoe); } } diff --git a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java index 5c4cd708..8bd4986a 100644 --- a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java +++ b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java @@ -42,7 +42,7 @@ public class TileFarmStation extends AbstractPoweredTaskEntity { HOE { boolean match(ItemStack item) { for (ItemStack stack : Config.farmHoes) { - if (stack != null && OreDictionary.itemMatches(item, stack, false)) { + if (stack.getItem() == item.getItem()) { return true; } } @@ -57,7 +57,6 @@ public class TileFarmStation extends AbstractPoweredTaskEntity { if (item == null) { return false; } - return match(item); } From 960cdf0c0e2f278f07b0988f8783a30feb08f894 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 31 Dec 2014 15:36:11 +0300 Subject: [PATCH 27/95] Update ru_RU.lang --- resources/assets/enderio/lang/ru_RU.lang | 150 ++++++++++++++++++----- 1 file changed, 120 insertions(+), 30 deletions(-) diff --git a/resources/assets/enderio/lang/ru_RU.lang b/resources/assets/enderio/lang/ru_RU.lang index 27a7269a..822d2cd5 100644 --- a/resources/assets/enderio/lang/ru_RU.lang +++ b/resources/assets/enderio/lang/ru_RU.lang @@ -80,6 +80,9 @@ enderio.itemGasConduit.tooltip.maxExtract=Макс. извлечение: enderio.itemGasConduit.tooltip.maxIo=Макс. IO: enderio.itemGasConduit.tooltip.detailed.line1=Передаёт газы совместимые с Mekanism +enderio.itemMEConduit.name=МЭ труба +enderio.itemMEConduitDense.name=Плотная МЭ труба + //Materials enderio.itemMaterial.name=Материалы enderio.silicon.name=Кремний @@ -97,23 +100,30 @@ enderio.tooltip.isBeaconBase=Может быть использовано, ка //Fluids fluid.nutrient_distillation=Питательный дистиллят +tile.fluid.nutrient_distillation.name=Питательный дистиллят item.bucketNutrient_distillation.name=Ведро питательного дистиллята fluid.hootch=Самогон +tile.fluid.hootch.name=Самогон item.bucketHootch.name=Ведро самогона fluid.fire_water=Огненная вода +tile.fluid.fire_water.name=Огненная вода item.bucketFire_water.name=Ведро огненной воды fluid.rocket_fuel=Ракетное топливо +tile.fluid.rocket_fuel.name=Ракетное топливо item.bucketRocket_fuel.name=Ведро ракетного топлива fluid.eio.xpjuice=Жидкий опыт +tile.fluid.eio.xpjuice.name=Жидкий опыт item.bucketXpjuice.name=Ведро опыта enderio.fluid.millibucket.abr=мВ -enderio.fuel.tooltip.heading=Детали о топливе +enderio.fuel.tooltip.heading=Информация о топливе enderio.fuel.tooltip.burnTime=время горения enderio.fluid.millibucketsTick=мВ/тик +enderio.coolant.tooltip.heading=Хладагент +enderio.coolant.tooltip.degreesPerBucket=Градус за ведро enderio.gas.gasTick=Газ/тик @@ -127,8 +137,8 @@ enderio.enderCrystal.name=Кристалл Края enderio.attractorCrystal.name=Привлекающий кристалл enderio.darkGrindingBall.name=Шарик тёмной стали enderio.darkGrindingBall.tooltip.detailed.line1=Измельчающий шарик для дробилки -enderio.darkGrindingBall.tooltip.detailed.line2=Основной вывод -enderio.darkGrindingBall.tooltip.detailed.line3=Бонусный вывод +enderio.darkGrindingBall.tooltip.detailed.line2=Основной выход +enderio.darkGrindingBall.tooltip.detailed.line3=Бонусный выход enderio.darkGrindingBall.tooltip.detailed.line4=Снижение мощности tile.blockReinforcedObsidian.name=Укреплённый обсидиан @@ -174,6 +184,7 @@ enderio.powderGold.name=Золотой порошок enderio.powderCopper.name=Медный порошок enderio.powderTin.name=Оловянный порошок enderio.powderEnder.name=Порошок из жемчуга Края +enderio.ingotEnderiumBase.name=Основа Края //Capacitors enderio.itemBasicCapacitor.name=Конденсатор @@ -189,7 +200,7 @@ enderio.machine.tooltip.clearConfig=Это очистит всю хранящу //Machines tile.blockStirlingGenerator.name=Генератор Стирлинга tile.blockStirlingGenerator.tooltip.detailed.line1=Сжигает твёрдое топливо для производства энергии -tile.blockStirlingGenerator.tooltip.detailed.line2=Может быть улучшен, чтобы увеличить вывод +tile.blockStirlingGenerator.tooltip.detailed.line2=Может быть улучшен, чтобы увеличить выход tile.blockStirlingGenerator.tooltip.detailed.line3=и эффективность tile.blockReservoir.name=Резервуар @@ -198,7 +209,7 @@ tile.blockReservoir.tooltip.detailed.line2=Добавьте два ведра в tile.blockReservoir.tooltip.detailed.line3=бесконечного источника воды tile.blockReservoir.tooltip.detailed.line4=Производит одно ведро в секунду tile.blockReservoir.tooltip.detailed.line5=ПКМ с гаечным ключом, чтобы -tile.blockReservoir.tooltip.detailed.line6=включить авто-вывод +tile.blockReservoir.tooltip.detailed.line6=включить авто-выход tile.blockAlloySmelter.name=Завод сплавов tile.blockAlloySmelter.tooltip.detailed.line1=Используется для создания сплавов EnderIO @@ -212,16 +223,17 @@ tile.blockSolarPanel.advanced.name=Продвинутая фотовольтов tile.blockSolarPanel.tooltip.detailed.line1=Производит энергию в светлое время суток tile.blockSolarPanel.tooltip.detailed.line2=Должна иметь чистое пространство tile.blockSolarPanel.tooltip.detailed.line3=к небу -enderio.maxSolorProduction=Макс. вывод +enderio.maxSolorProduction=Макс. выход +enderio.tooltip.efficiency=Эффективность item.itemElectricLight.name=Электрический светильник item.itemElectricLight.tooltip.detailed.line1=Освещает большую площадь при подаче -item.itemElectricLight.tooltip.detailed.line2=энергии и сигнала красного камня +item.itemElectricLight.tooltip.detailed.line2=энергии и сигнала красного камня. item.itemElectricLightInverted.name=Электрический светильник (Перевёрнутый) item.itemElectricLightInverted.tooltip.detailed.line1=Освещает большую площадь при подаче -item.itemElectricLightInverted.tooltip.detailed.line2=энергии -item.itemElectricLightInverted.tooltip.detailed.line3=Выключается по сигналу красного камня +item.itemElectricLightInverted.tooltip.detailed.line2=энергии. +item.itemElectricLightInverted.tooltip.detailed.line3=Выключается по сигналу красного камня. item.itemLight.name=Светильник item.itemLight.tooltip.detailed.line1=Излучает свет по @@ -231,12 +243,39 @@ item.itemLightInverted.name=Светильник (Перевёрнутый) item.itemLightInverted.tooltip.detailed.line1=Излучает свет, отключается по item.itemLightInverted.tooltip.detailed.line2=сигналу красного камня -tile.blockCapacitorBank.name=Блок конденсаторов -tile.blockCapacitorBank.creative.name=Творческий блок конденсаторов -tile.blockCapacitorBank.tooltip.detailed.line1=Мульти-блок для хранения энергии. -tile.blockCapacitorBank.tooltip.detailed.line2=Может заряжать РФ-предметы. +item.itemWirelessLight.name=Беспроводной электрический светильник +item.itemWirelessLight.tooltip.detailed.line1=Освещает большую площадь при подаче +item.itemWirelessLight.tooltip.detailed.line2=энергии и сигнала красного камня. +item.itemWirelessLight.tooltip.detailed.line3=Может получать энергию от беспроводных зарядников. + +item.itemWirelessLightInverted.name=Беспроводной электрический светильник (Перевёрнутый) +item.itemWirelessLightInverted.tooltip.detailed.line1=Освещает большую площадь при подаче +item.itemWirelessLightInverted.tooltip.detailed.line2=энергии. +item.itemWirelessLightInverted.tooltip.detailed.line3=Выключается по сигналу красного камня. +item.itemWirelessLightInverted.tooltip.detailed.line4=Может получать энергию от беспроводных зарядников. + +tile.blockCapacitorBank.name=Блок конденсаторов (Устаревший) +tile.blockCapacitorBank.creative.name=Творческий блок конденсаторов (Устаревший) +tile.blockCapacitorBank.tooltip.detailed.line1=Переделайте в новый блок, положив +tile.blockCapacitorBank.tooltip.detailed.line2=в сетку создания. tile.blockCapacitorBank.tooltipPrefix=Содержит +tile.blockCapBank.creative.name=Творческий блок конденсаторов +tile.blockCapBank.simple.name=Основной блок конденсаторов +tile.blockCapBank.activated.name=Блок конденсаторов +tile.blockCapBank.vibrant.name=Вибрирующий блок конденсаторов +tile.blockCapBank.tooltip.detailed.line1=Мульти-блок для хранения энергии. +tile.blockCapBank.tooltip.detailed.line2=Может заряжать РФ-предметы. +tile.blockCapBank.tooltip.detailed.line3=Shift-ПКМ, по экрану пустой рукой, +tile.blockCapBank.tooltip.detailed.line4=чтобы изменить отображаемую информацию +tile.blockCapBank.tooltipPrefix=Содержит + + +enderio.capbank.maxIO=Макс. вход/выход +enderio.capbank.maxIn=Макс. вход +enderio.capbank.maxOut=Макс. выход +enderio.capbank.change=Вход/выход + tile.blockWirelessCharger.name=Беспроводной зарядник tile.blockWirelessCharger.tooltip.detailed.line1=Заряжает ближайшие предметы tile.blockWirelessCharger.tooltip.detailed.line2=в инвентарях игроков @@ -244,15 +283,37 @@ tile.blockWirelessCharger.tooltip.detailed.line2=в инвентарях игр tile.blockSagMill.name=Дробилка tile.blockSagMill.tooltip.detailed.line1=Дробит руду и другие предметы tile.blockSagMill.tooltip.detailed.line2=Добавьте измельчающие шарики, чтобы увеличить -tile.blockSagMill.tooltip.detailed.line3=вывод и эффективность +tile.blockSagMill.tooltip.detailed.line3=выход и эффективность tile.blockSagMill.tooltip.detailed.line4=Улучшите конденсаторами, чтобы увеличить tile.blockSagMill.tooltip.detailed.line5=скорость и хранилище энергии tile.blockSagMill.tooltipPrefix=Содержит -tile.blockHyperCube.name=Пространственный приёмопередатчик -tile.blockHyperCube.tooltip.detailed.line1=Переносит предметы, жидкости и энергию -tile.blockHyperCube.tooltip.detailed.line2=без проводов на любое расстояние и -tile.blockHyperCube.tooltip.detailed.line3=между измерениями +tile.blockHyperCube.name=Пространственный приёмопередатчик (Устаревший) +tile.blockHyperCube.tooltip.detailed.line1=Переделайте под новую модель, положив +tile.blockHyperCube.tooltip.detailed.line2=в сетку создания + +tile.blockTransceiver.name=Пространственный приёмопередатчик +tile.blockTransceiver.tooltip.detailed.line1=Переносит предметы, жидкости и энергию +tile.blockTransceiver.tooltip.detailed.line2=без проводов на любое расстояние и +tile.blockTransceiver.tooltip.detailed.line3=между измерениями + +tile.blockEnderRail.name=Рельс Края +tile.blockEnderRail.tooltip.detailed.line1=Телепортирует вагонетки, когда поставлен +tile.blockEnderRail.tooltip.detailed.line2=на пространственный приёмопередатчик +tile.blockEnderRail.tooltip.detailed.line3=Установите направления, используя +tile.blockEnderRail.tooltip.detailed.line4=вкладку "рельс" в приёмопередатчике +tile.blockEnderRail.tooltip.detailed.line5=Установите направление с помощью Shift-ПКМ +tile.blockEnderRail.tooltip.detailed.line6=ключом + +enderio.trans.showChannels= + +enderio.trans.power=Энергия +enderio.trans.item=Предмет +enderio.trans.fluid=Жидкость +enderio.trans.rail=Рельс + +enderio.trans.recieving=Получение +enderio.trans.sending=Отправка tile.blockPowerMonitor.name=Индикатор мощности tile.blockPowerMonitor.tooltip.detailed.line1=Показывает сведения о затратах энергии @@ -273,7 +334,7 @@ tile.blockEnchanter.tooltip.detailed.line2=зачарованные книги tile.blockCombustionGenerator.name=Генератор внутреннего сгорания tile.blockCombustionGenerator.tooltip.detailed.line1=Сжигает жидкое топливо для производства энергии tile.blockCombustionGenerator.tooltip.detailed.line2=Требует охладитель (например воду) -tile.blockCombustionGenerator.tooltip.detailed.line3=Вывод зависит от топлива +tile.blockCombustionGenerator.tooltip.detailed.line3=Выход зависит от топлива tile.blockZombieGenerator.name=Зомби генератор tile.blockZombieGenerator.tooltip.detailed.line1=Потребляет питательный дистиллят @@ -316,6 +377,8 @@ tile.blockTank.tooltip.detailed.line1=Переносной жидкостный tile.blockTank.tooltip.detailed.line2=Может быть использован для опустошения и tile.blockTank.tooltip.detailed.line3=заполнения жидкостных контейнеров enderio.tank.tank=Резервуар +enderio.tooltip.none=Нет +enderio.tooltip.fluidStored=Содержится жидкость tile.blockCrafter.name=Создатель tile.blockCrafter.tooltip.detailed.line1=Электрический авто-создатель @@ -355,10 +418,14 @@ tile.blockSpawnGuard.tooltip.detailed.line1=Запрещает мобам поя tile.blockSpawnGuard.tooltip.detailed.line2=в пределах действия обелиска tile.blockExperienceObelisk.name=Обелиск опыта -tile.blockExperienceObelisk.tooltip.detailed.line1=Когда поставлен на резервуар, -tile.blockExperienceObelisk.tooltip.detailed.line2=нажмите ПКМ, чтобы получить опыт -tile.blockExperienceObelisk.tooltip.detailed.line3=Shift-ПКМ пустой рукой, -tile.blockExperienceObelisk.tooltip.detailed.line4=чтобы слить свой опыт в резервуар +tile.blockExperienceObelisk.tooltip.detailed.line1=Содержит опыт +tile.blockExperienceObelisk.tooltip.detailed.line2=Может отдавать жидкий опыт +tile.blockExperienceObelisk.tooltip.detailed.line3=присоединённым резервуарам + +tile.blockBuffer.item.name=Предметный буфер +tile.blockBuffer.power.name=Энергобуфер +tile.blockBuffer.omni.name=Универсальный буфер +tile.blockBuffer.creative.name=Творческий буфер enderio.machine.tooltip.configured=(Настроен) @@ -374,6 +441,15 @@ tile.blockDarkSteelPressurePlate.silent.tooltip.detailed.line2=Может быт tile.blockDarkSteelPressurePlate.silent.tooltip.detailed.line3=невидима, когда покрашена в почти tile.blockDarkSteelPressurePlate.silent.tooltip.detailed.line4=прозрачное стекло +tile.blockDarkSteelAnvil.intact.name=Наковальня из тёмной стали +tile.blockDarkSteelAnvil.slightlyDamaged.name=Повреждённая наковальня из тёмной стали +tile.blockDarkSteelAnvil.veryDamaged.name=Сильно повреждённая наковальня из тёмной стали +tile.blockDarkSteelAnvil.tooltip.common.line1=Устойчива к повреждениям +tile.blockDarkSteelAnvil.tooltip.detailed.line1=Намного прочнее +tile.blockDarkSteelAnvil.tooltip.detailed.line2=обычной наковальни + +tile.blockDarkSteelLadder.name=Лестница из тёмной стали +tile.blockDarkSteelLadder.tooltip.common.line1=Быстрее обычных лестниц //Travel tile.blockTravelAnchor.name=Якорь путешествия @@ -405,7 +481,8 @@ tile.blockPaintedStair.name=Покрашенные ступени tile.blockPaintedSlab.name=Покрашенная плита tile.blockPaintedDoubleSlab.name=Покрашенная плита tile.blockPaintedGlowstone.name=Покрашенный светящийся камень -enderio.painter.tooltip.wasPainted=§oКак Вы думаете, что это будет делать? +tile.blockPaintedCarpet.name=Покрашенный ковёр +enderio.painter.tooltip.wasPainted=§oКак Вы думаете, что оно будет делать? tile.blockPainter.tooltip.detailed.line1=Используется для покраски: tile.blockPainter.tooltip.detailed.line2=Фасадов труб, ступенек, заборов, @@ -452,6 +529,7 @@ item.itemXpTransfer.tooltip.detailed.line4=в резервуар skullZombieElectrode.name=Зомби-электрод skullZombieController.name=Зомби-контроллер skullZombieFrankenstien.name=Frank'N'Zombie +skullEnderResonator.name=Резонатор Края item.itemSpawnEggEnderIO.name=Призвать существо - @@ -560,8 +638,17 @@ enderio.darksteel.upgrade.nightVision.name=Ночное видение enderio.darksteel.upgrade.nightVision.enabled=Ночное видение включено enderio.darksteel.upgrade.nightVision.disabled=Ночное видение выключено +enderio.darksteel.upgrade.solar_one.name=Солнечная батарея I +enderio.darksteel.upgrade.solar_one.tooltip.detailed.line1=Генерирует энергию от солнца. + +enderio.darksteel.upgrade.solar_two.name=Солнечная батарея II +enderio.darksteel.upgrade.solar_two.tooltip.detailed.line1==Генерирует энергию от солнца. + //------GUI +enderio.gui.simple.in=Макс. вход: +enderio.gui.simple.out=Макс. выход: + enderio.gui.enabled=Включено enderio.gui.disabled=Выключено enderio.gui.send=Отправлять @@ -618,7 +705,7 @@ enderio.gui.mjReader.noPowerFromSide=не может получать энерг enderio.gui.mjReader.connectionDir=соединение с enderio.gui.mjReader.extractedItems=Экспортируемые предметы enderio.gui.mjReader.extractedItem=Предмет -enderio.gui.mjReader.noOutputs=нет доступных выводов +enderio.gui.mjReader.noOutputs=нет доступных выходов enderio.gui.mjReader.insertedInto=будет направлен: enderio.gui.mjReader.noItems=Не получает предметов. enderio.gui.mjReader.noItem=Не может получать @@ -656,6 +743,8 @@ enderio.gui.alloy.mode.furnace=Только обычные рецепты //Vat enderio.vat.outputTank=Выход чана enderio.vat.inputTank=Вход чана +enderio.gui.machine.vat.dump.1=Сбросить резервуар входа +enderio.gui.machine.vat.dump.2=Сбросить резервуар выхода //Combustion Gen enderio.combustionGenerator.coolantTank=Охладитель @@ -687,6 +776,7 @@ enderio.gui.conduit.ioMode.input=Извлекать enderio.gui.conduit.ioMode.output=Помещать enderio.gui.conduit.ioMode.disabled=Отключен enderio.gui.conduit.ioMode.notSet=По-умолчанию +tile.blockConduitBundle.name=Коннектор для труб enderio.gui.conduit.item.insertionFilter=Фильтр на помещение enderio.gui.conduit.item.extractionFilter=Фильтр на извлечение @@ -696,7 +786,7 @@ enderio.gui.conduit.item.ignoreMetaData=Игнорировать метадан enderio.gui.conduit.item.matchMetaData=Соблюдать метаданные enderio.gui.conduit.item.whitelist=Белый список enderio.gui.conduit.item.blacklist=Чёрный список -enderio.gui.conduit.item.stickyEnabled=Включён "липкий" режим|Выбранные предметы будут|отправляться только на|"липкие" выводы. +enderio.gui.conduit.item.stickyEnabled=Включён "липкий" режим|Выбранные предметы будут|отправляться только на|"липкие" выходы. enderio.gui.conduit.item.stickyDisbaled="Липкий" режим выключен enderio.gui.conduit.item.ignoreNBT=Игнорировать NBT enderio.gui.conduit.item.matchNBT=Соблюдать NBT @@ -710,12 +800,16 @@ enderio.gui.conduit.item.priority=Приоритет enderio.gui.conduit.redstone.signalColor=Цвет сигнала enderio.gui.conduit.redstone.color=Цвет +enderio.gui.conduit.redstone.signalStrengh=Сильный сигнал +enderio.gui.conduit.redstone.signalStrengh.tooltip=Испускает сильный сигнал красного камня enderio.gui.conduit.fluid.autoExtract=Авто-извлечение enderio.gui.conduit.fluid.filter=Фильтр enderio.gui.conduit.gas.autoExtract=Авто-извлечение +//Enchants +enchantment.enderio.soulBound=Печать души //Configuration enderio.config.title=Конфигурация Ender IO @@ -761,7 +855,3 @@ enderio.config.fluid.tooltip=Чистая энергия жидкостей! enderio.config.spawner=Настройки электрического спаунера enderio.config.spawner.tooltip=У меня закончились остроумные подсказки. - - -//Mobs -entity.EnderIO.Enderminy.name=Enderminy From c4cec0a0ff666411ac404908ef770f6696bca166 Mon Sep 17 00:00:00 2001 From: hilburn Date: Wed, 31 Dec 2014 17:34:40 +0000 Subject: [PATCH 28/95] Fixes Changes powerInMachines to use long as apparently that can be a thing - prevents overflow Fixes some typos Changes the Set to List --- .../conduit/power/NetworkPowerManager.java | 8 ++--- .../crazypants/enderio/config/Config.java | 4 +-- .../machine/monitor/GuiPowerMonitor.java | 5 ++- .../machine/monitor/TilePowerMonitor.java | 34 +++++++++---------- 4 files changed, 24 insertions(+), 27 deletions(-) diff --git a/src/main/java/crazypants/enderio/conduit/power/NetworkPowerManager.java b/src/main/java/crazypants/enderio/conduit/power/NetworkPowerManager.java index 22ee1e7b..7fe43eab 100644 --- a/src/main/java/crazypants/enderio/conduit/power/NetworkPowerManager.java +++ b/src/main/java/crazypants/enderio/conduit/power/NetworkPowerManager.java @@ -82,8 +82,8 @@ public class NetworkPowerManager { return capSupply.maxCap; } - public int getPowerInReceptors() { - int result = 0; + public long getPowerInReceptors() { + long result = 0; Set done = new HashSet(); for (ReceptorEntry re : receptors) { if(!re.emmiter.getConnectionsDirty()) { @@ -97,8 +97,8 @@ public class NetworkPowerManager { return result; } - public int getMaxPowerInReceptors() { - int result = 0; + public long getMaxPowerInReceptors() { + long result = 0; Set done = new HashSet(); for (ReceptorEntry re : receptors) { if(!re.emmiter.getConnectionsDirty()) { diff --git a/src/main/java/crazypants/enderio/config/Config.java b/src/main/java/crazypants/enderio/config/Config.java index e2988135..834995af 100644 --- a/src/main/java/crazypants/enderio/config/Config.java +++ b/src/main/java/crazypants/enderio/config/Config.java @@ -2,9 +2,7 @@ package crazypants.enderio.config; import java.io.File; import java.util.ArrayList; -import java.util.HashSet; import java.util.List; -import java.util.Set; import net.minecraft.item.ItemStack; import net.minecraftforge.common.config.Configuration; @@ -275,7 +273,7 @@ public final class Config { "Railcraft:tool.steel.hoe", "TConstruct:mattock" }; - public static Set farmHoes = new HashSet(); + public static List farmHoes = new ArrayList(); public static int magnetPowerUsePerSecondRF = 1; public static int magnetPowerCapacityRF = 100000; diff --git a/src/main/java/crazypants/enderio/machine/monitor/GuiPowerMonitor.java b/src/main/java/crazypants/enderio/machine/monitor/GuiPowerMonitor.java index a073dc3d..6835cbfc 100644 --- a/src/main/java/crazypants/enderio/machine/monitor/GuiPowerMonitor.java +++ b/src/main/java/crazypants/enderio/machine/monitor/GuiPowerMonitor.java @@ -16,7 +16,6 @@ import crazypants.enderio.gui.CheckBoxEIO; import crazypants.enderio.machine.power.PowerDisplayUtil; import crazypants.enderio.network.PacketHandler; import crazypants.gui.GuiContainerBase; -import crazypants.gui.GuiScreenBase; import crazypants.gui.GuiToolTip; import crazypants.render.ColorUtil; import crazypants.render.RenderUtil; @@ -321,7 +320,7 @@ public class GuiPowerMonitor extends GuiContainerBase { sb.append(" "); sb.append(PowerDisplayUtil.ofStr()); sb.append(" "); - sb.append(formatPower(te.maxPowerInCoduits)); + sb.append(formatPower(te.maxPowerInConduits)); sb.append(" "); sb.append(PowerDisplayUtil.abrevation()); fontRenderer.drawString(sb.toString(), x, y, rgb, false); @@ -386,7 +385,7 @@ public class GuiPowerMonitor extends GuiContainerBase { rgb = valuesCol; y += fontRenderer.FONT_HEIGHT + 2; sb = new StringBuilder(); - sb.append(formatPowerFloat(te.aveRfRecieved)); + sb.append(formatPowerFloat(te.aveRfReceived)); sb.append(" "); sb.append(PowerDisplayUtil.abrevation()); sb.append(PowerDisplayUtil.perTickStr()); diff --git a/src/main/java/crazypants/enderio/machine/monitor/TilePowerMonitor.java b/src/main/java/crazypants/enderio/machine/monitor/TilePowerMonitor.java index 3f5eaa5e..ece8319f 100644 --- a/src/main/java/crazypants/enderio/machine/monitor/TilePowerMonitor.java +++ b/src/main/java/crazypants/enderio/machine/monitor/TilePowerMonitor.java @@ -24,13 +24,13 @@ public class TilePowerMonitor extends AbstractPowerConsumerEntity implements IIn int energyPerTick = 1; int powerInConduits; - int maxPowerInCoduits; + int maxPowerInConduits; long powerInCapBanks; long maxPowerInCapBanks; - int powerInMachines; - int maxPowerInMachines; + long powerInMachines; + long maxPowerInMachines; float aveRfSent; - float aveRfRecieved; + float aveRfReceived; boolean engineControlEnabled = false; float startLevel = 0.75f; @@ -106,8 +106,8 @@ public class TilePowerMonitor extends AbstractPowerConsumerEntity implements IIn return powerInConduits; } - public float getMaxPowerInCoduits() { - return maxPowerInCoduits; + public float getMaxPowerInConduits() { + return maxPowerInConduits; } public float getPowerInCapBanks() { @@ -130,8 +130,8 @@ public class TilePowerMonitor extends AbstractPowerConsumerEntity implements IIn return aveRfSent; } - public float getAveRfRecieved() { - return aveRfRecieved; + public float getAveRfReceived() { + return aveRfReceived; } @Override @@ -176,19 +176,19 @@ public class TilePowerMonitor extends AbstractPowerConsumerEntity implements IIn } private float getPercentFull() { - return (float)(powerInConduits + powerInCapBanks) / (maxPowerInCoduits + maxPowerInCapBanks); + return (float)(powerInConduits + powerInCapBanks) / (maxPowerInConduits + maxPowerInCapBanks); } private void update(NetworkPowerManager pm) { powerInConduits = pm.getPowerInConduits(); - maxPowerInCoduits = pm.getMaxPowerInConduits(); + maxPowerInConduits = pm.getMaxPowerInConduits(); powerInCapBanks = pm.getPowerInCapacitorBanks(); maxPowerInCapBanks = pm.getMaxPowerInCapacitorBanks(); powerInMachines = pm.getPowerInReceptors(); maxPowerInMachines = pm.getMaxPowerInReceptors(); PowerTracker tracker = pm.getNetworkPowerTracker(); aveRfSent = tracker.getAverageRfTickSent(); - aveRfRecieved = tracker.getAverageRfTickRecieved(); + aveRfReceived = tracker.getAverageRfTickRecieved(); } private NetworkPowerManager getPowerManager() { @@ -215,7 +215,7 @@ public class TilePowerMonitor extends AbstractPowerConsumerEntity implements IIn public void readPowerInfoFromNBT(NBTTagCompound nbtRoot) { powerInConduits = nbtRoot.getInteger("powerInConduits"); - maxPowerInCoduits = nbtRoot.getInteger("maxPowerInCoduits"); + maxPowerInConduits = nbtRoot.getInteger("maxPowerInConduits"); if(nbtRoot.hasKey("powerInCapBanks")) { powerInCapBanks = nbtRoot.getInteger("powerInCapBanks"); maxPowerInCapBanks = nbtRoot.getInteger("maxPowerInCapBanks"); @@ -226,7 +226,7 @@ public class TilePowerMonitor extends AbstractPowerConsumerEntity implements IIn powerInMachines = nbtRoot.getInteger("powerInMachines"); maxPowerInMachines = nbtRoot.getInteger("maxPowerInMachines"); aveRfSent = nbtRoot.getFloat("aveRfSent"); - aveRfRecieved = nbtRoot.getFloat("aveRfRecieved"); + aveRfReceived = nbtRoot.getFloat("aveRfReceived"); engineControlEnabled = nbtRoot.getBoolean("engineControlEnabled"); startLevel = nbtRoot.getFloat("startLevel"); @@ -241,13 +241,13 @@ public class TilePowerMonitor extends AbstractPowerConsumerEntity implements IIn public void writePowerInfoToNBT(NBTTagCompound nbtRoot) { nbtRoot.setInteger("powerInConduits", powerInConduits); - nbtRoot.setInteger("maxPowerInCoduits", maxPowerInCoduits); + nbtRoot.setInteger("maxPowerInConduits", maxPowerInConduits); nbtRoot.setLong("powerInCapBanksL", powerInCapBanks); nbtRoot.setLong("maxPowerInCapBanksL", maxPowerInCapBanks); - nbtRoot.setInteger("powerInMachines", powerInMachines); - nbtRoot.setInteger("maxPowerInMachines", maxPowerInMachines); + nbtRoot.setLong("powerInMachines", powerInMachines); + nbtRoot.setLong("maxPowerInMachines", maxPowerInMachines); nbtRoot.setFloat("aveRfSent", aveRfSent); - nbtRoot.setFloat("aveRfRecieved", aveRfRecieved); + nbtRoot.setFloat("aveRfReceived", aveRfReceived); nbtRoot.setBoolean("engineControlEnabled", engineControlEnabled); nbtRoot.setFloat("startLevel", startLevel); From 93684fc28ea843ec78ee30e6e37bf4640b3e1e3d Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Thu, 1 Jan 2015 16:39:28 -0500 Subject: [PATCH 29/95] Fix power monitor reading int values where it saved long --- .../crazypants/enderio/machine/monitor/TilePowerMonitor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/crazypants/enderio/machine/monitor/TilePowerMonitor.java b/src/main/java/crazypants/enderio/machine/monitor/TilePowerMonitor.java index ece8319f..16700858 100644 --- a/src/main/java/crazypants/enderio/machine/monitor/TilePowerMonitor.java +++ b/src/main/java/crazypants/enderio/machine/monitor/TilePowerMonitor.java @@ -223,8 +223,8 @@ public class TilePowerMonitor extends AbstractPowerConsumerEntity implements IIn powerInCapBanks = nbtRoot.getLong("powerInCapBanksL"); maxPowerInCapBanks = nbtRoot.getLong("maxPowerInCapBanksL"); } - powerInMachines = nbtRoot.getInteger("powerInMachines"); - maxPowerInMachines = nbtRoot.getInteger("maxPowerInMachines"); + powerInMachines = nbtRoot.getLong("powerInMachines"); + maxPowerInMachines = nbtRoot.getLong("maxPowerInMachines"); aveRfSent = nbtRoot.getFloat("aveRfSent"); aveRfReceived = nbtRoot.getFloat("aveRfReceived"); From 14f30acd8fa23269c75d037fe5f4752e93539f24 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Thu, 1 Jan 2015 17:11:20 -0500 Subject: [PATCH 30/95] #1549 EnderIO blocks should be mined faster with a pick --- src/main/java/crazypants/enderio/BlockEio.java | 1 + .../crazypants/enderio/conduit/facade/BlockConduitFacade.java | 1 + .../java/crazypants/enderio/machine/AbstractMachineBlock.java | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/java/crazypants/enderio/BlockEio.java b/src/main/java/crazypants/enderio/BlockEio.java index 11e1255b..32337b31 100644 --- a/src/main/java/crazypants/enderio/BlockEio.java +++ b/src/main/java/crazypants/enderio/BlockEio.java @@ -26,6 +26,7 @@ public abstract class BlockEio extends Block { setHardness(0.5F); setBlockName(name); setStepSound(Block.soundTypeMetal); + setHarvestLevel("pickaxe", 0); setCreativeTab(EnderIOTab.tabEnderIO); } diff --git a/src/main/java/crazypants/enderio/conduit/facade/BlockConduitFacade.java b/src/main/java/crazypants/enderio/conduit/facade/BlockConduitFacade.java index 1c79fbfe..db8c180a 100644 --- a/src/main/java/crazypants/enderio/conduit/facade/BlockConduitFacade.java +++ b/src/main/java/crazypants/enderio/conduit/facade/BlockConduitFacade.java @@ -29,6 +29,7 @@ public class BlockConduitFacade extends Block implements IPaintedBlock{ super(new Material(MapColor.stoneColor)); setHardness(0.5F); setStepSound(Block.soundTypeStone); + setHarvestLevel("pickaxe", 0); setBlockName(ModObject.blockConduitFacade.unlocalisedName); setCreativeTab(null); } diff --git a/src/main/java/crazypants/enderio/machine/AbstractMachineBlock.java b/src/main/java/crazypants/enderio/machine/AbstractMachineBlock.java index b16e691d..553b7c63 100644 --- a/src/main/java/crazypants/enderio/machine/AbstractMachineBlock.java +++ b/src/main/java/crazypants/enderio/machine/AbstractMachineBlock.java @@ -70,6 +70,7 @@ public abstract class AbstractMachineBlock exte setStepSound(soundTypeMetal); setBlockName(mo.unlocalisedName); setCreativeTab(EnderIOTab.tabEnderIO); + setHarvestLevel("pickaxe", 0); random = new Random(); } From 848fc10d376e679234369c8f815f88623885ebda Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Fri, 2 Jan 2015 01:19:36 -0500 Subject: [PATCH 31/95] #1556 Farm should not allow two of the same type of tool in the inv --- .../enderio/machine/farm/TileFarmStation.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java index 8bd4986a..71904736 100644 --- a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java +++ b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java @@ -16,7 +16,6 @@ import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.server.MinecraftServer; import net.minecraftforge.common.util.ForgeDirection; -import net.minecraftforge.oredict.OreDictionary; import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint; import crazypants.enderio.EnderIO; import crazypants.enderio.ModObject; @@ -294,7 +293,19 @@ public class TileFarmStation extends AbstractPoweredTaskEntity { return false; } if(i <= maxToolSlot) { - return ToolType.isTool(stack) || getLooting(stack) > 0; + if (ToolType.isTool(stack)) { + int otherSlot = i == minToolSlot ? maxToolSlot : minToolSlot; + if (inventory[otherSlot] == null) { + return true; + } else { // let's make sure there's not one of this type in here already + for (ToolType type : ToolType.values()) { + if (type.itemMatches(inventory[otherSlot]) && type.itemMatches(stack)) { + return false; + } + } + return true; + } + } } return (inventory[i] != null || !isSlotLocked(i)) && FarmersCommune.instance.canPlant(stack); } From 9fa3d5d6456d14349b77a7dec497cf29a2aed238 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Fri, 2 Jan 2015 01:33:59 -0500 Subject: [PATCH 32/95] Allow dark steel armor to charge other mods' armors --- src/main/java/crazypants/enderio/config/Config.java | 3 +++ .../crazypants/enderio/item/darksteel/DarkSteelController.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/config/Config.java b/src/main/java/crazypants/enderio/config/Config.java index 834995af..b8886c94 100644 --- a/src/main/java/crazypants/enderio/config/Config.java +++ b/src/main/java/crazypants/enderio/config/Config.java @@ -226,6 +226,7 @@ public final class Config { public static int darkSteelSolarOneCost = 15; public static int darkSteelSolarTwoGen = 40; public static int darkSteelSolarTwoCost = 30; + public static boolean darkSteelSolarChargeOthers = true; public static float darkSteelAnvilDamageChance = 0.024f; @@ -794,6 +795,8 @@ public final class Config { "Cost in XP levels of the Solar II upgrade.").getInt(); darkSteelSolarTwoGen = config.get(sectionDarkSteel.name, "darkSteelSolarTwoGen", darkSteelSolarTwoGen, "RF per SECOND generated by the Solar II upgrade. Split between all equipped DS armors.").getInt(); + darkSteelSolarChargeOthers = config.get(sectionDarkSteel.name, "darkSteelSolarChargeOthers", darkSteelSolarChargeOthers, + "If enabled allows the solar upgrade to charge non-darksteel armors that the player is wearing.").getBoolean(); darkSteelSwordSkullChance = (float) config.get(sectionDarkSteel.name, "darkSteelSwordSkullChance", darkSteelSwordSkullChance, "The base chance that a skull will be dropped when using a powered dark steel sword (0 = no chance, 1 = 100% chance)").getDouble( diff --git a/src/main/java/crazypants/enderio/item/darksteel/DarkSteelController.java b/src/main/java/crazypants/enderio/item/darksteel/DarkSteelController.java index eba39f07..6eddf818 100644 --- a/src/main/java/crazypants/enderio/item/darksteel/DarkSteelController.java +++ b/src/main/java/crazypants/enderio/item/darksteel/DarkSteelController.java @@ -156,7 +156,7 @@ public class DarkSteelController { for (int i = 0; i < 4 && toAdd > 0; i++) { ItemStack stack = player.inventory.armorInventory[nextIndex]; - if(EnergyUpgrade.loadFromItem(stack) != null) { + if(stack != null && (EnergyUpgrade.loadFromItem(stack) != null || (Config.darkSteelSolarChargeOthers && stack.getItem() instanceof IEnergyContainerItem))) { toAdd -= ((IEnergyContainerItem) stack.getItem()).receiveEnergy(stack, toAdd, false); } nextIndex = (nextIndex + 1) % 4; From daec67652fe97ffb5d93d0223c01991511d7b071 Mon Sep 17 00:00:00 2001 From: RandomGenius Date: Fri, 2 Jan 2015 11:52:39 +0100 Subject: [PATCH 33/95] GUI Button Cleanup Made it so all buttons look the same (lighting and shadows) --- .../assets/enderio/textures/gui/widgets.png | Bin 262932 -> 47687 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/resources/assets/enderio/textures/gui/widgets.png b/resources/assets/enderio/textures/gui/widgets.png index 7a8012d22b359fb2dbb98a1aa44f41a38b477dad..62f5e115b6a56b5baf00319a2db31bb843314fa1 100644 GIT binary patch literal 47687 zcmXt91yCE`*9{a6(g2}2#R=~24#gdcmE!KjrNxQ`rx4uTr9ja@aSv9C7Pmr+Yrp*F zoBt%4-R$hXz0dBw@0{~uv^13PfaE{`0Dz~WEUyCqpde3C09Y8vgQ;hQE%JczUR6mR z@bAA*L3ep7@(Q-QvauHcfM5CF59JRbrVsKWrnic^0_Fw^Dv*Jw58O8m0MGzbgHz(qmDq!%fxSKBDSH zC~6Zhvo_QaR?ZdmvjSfb8k@DY7_#84s1c^=&|s0#fTEJN@HfPAJZ@e;h(Czi_3l4K zi6!^>8vGvXK6}XXx<04K+h_=tdeQf5Q?wnw&gV%_^t-#LVU_M@t506-l<1GOTx zdKdpEA4Q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!wQab_hfL~+~&}MRx@NhR?@N>?eQ+>4nIxWF3hT!+11#kHF zjP3V7(~1V&rI_=#lC=%p|IV|WSbOeQMWq#ntmXLr$BXXED`lEpfVqm-=mAVMhuiq2 z!gXd zy@`Gu%%;`NVM9`U?q+%**RbPe0?tBE2D<*OA3s+#v%!KFR8- zDXS%Ygjzi3Idx#z7?8jzkibYs5@7vxH22(dPv573^blh0{yPdrr1{f8dI<4!|E=W9 zoc}eLt}~mH04q&Ai-O+4oc}A36E3S{!%;P)txY`;$D$yt2Y4E-_-a)67JN07q@-wj zct0{0K=8ZWI%Wg3$-qlFW(}zP)Ydr3V=v%%#^`7Err-LL8h2h!dG^AMJGbWCX)A2t z5dz4NdNl6(>y_8*)i-S1s0s=SR8upQe4aX`Dl01$298x-ZLO-Vu2$cC^Np&htpzV? zMt47!^q0~n0Tr+K(}qDq5|pMwb27Vkit8vaotlCv)>w2S$WIq8E350QdT;AWRnUAK zB#_4*!7%m^B)zyHKb!=HyCeaIB@6gw`6K~eCklMCO!|cgBs?1MB^_P!%0OPf1|rCm zs*dXijs;f(GA^DKfmraf82~qW0Lmo=X{D%$s z)i37@g9MVSIe1Kwo|ciJuLjT`w|=*JIl%u=EZ}GUX!6qi-Ve7Pzw6Us{?=h2m}bot zcqIx6I0D;r&yMNh?Ez3OyZx6-4D`JHJH|0B1Hn6D=_d~eqe+4wS>jvI?3bbK;KM(t`4}4eff4gvZJIG zA_%ERgFOKIw>BVE=~!-k^21++yknLStE}wrPOA?#Kc^mNp?4eqRjecSW&((%luKm{AeLuMcA8!i zz&Mn89@BqYk}ZEw-ryU!K;FQ~Q`-+>xb+9|tp&icE$BhI%*~Gcx3f3DH@AYXp`>`> K?6Nx^eBpm!fiVIA From 641d9a3c56820d0ab0dfdb4561c6be0dab1186c8 Mon Sep 17 00:00:00 2001 From: Matthias Mann Date: Fri, 2 Jan 2015 12:27:37 +0100 Subject: [PATCH 34/95] fixed machine name in log message --- .../enderio/machine/crusher/CrusherRecipeManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/machine/crusher/CrusherRecipeManager.java b/src/main/java/crazypants/enderio/machine/crusher/CrusherRecipeManager.java index 98b2f2ac..bd2feac8 100644 --- a/src/main/java/crazypants/enderio/machine/crusher/CrusherRecipeManager.java +++ b/src/main/java/crazypants/enderio/machine/crusher/CrusherRecipeManager.java @@ -168,7 +168,7 @@ public class CrusherRecipeManager { for (Recipe rec : newRecipes) { addRecipe(rec); } - Log.info("Finished processing Alloy Smelter recipes. " + recipes.size() + " recipes avaliable."); + Log.info("Finished processing SAG Mill recipes. " + recipes.size() + " recipes avaliable."); } public void addRecipe(ItemStack input, int energyCost, ItemStack output) { From 3482229a6758785cdd39013ffba3458281cdde6c Mon Sep 17 00:00:00 2001 From: Matthias Mann Date: Fri, 2 Jan 2015 12:44:58 +0100 Subject: [PATCH 35/95] added AE2 and ProjectRed hoes to the farm station's white list --- src/main/java/crazypants/enderio/config/Config.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/config/Config.java b/src/main/java/crazypants/enderio/config/Config.java index b8886c94..4afe030f 100644 --- a/src/main/java/crazypants/enderio/config/Config.java +++ b/src/main/java/crazypants/enderio/config/Config.java @@ -272,7 +272,9 @@ public final class Config { "MekanismTools:ObsidianHoe", "MekanismTools:LapisLazuliHoe", "MekanismTools:OsmiumHoe", "MekanismTools:BronzeHoe", "MekanismTools:GlowstoneHoe", "MekanismTools:SteelHoe", "Steamcraft:hoeBrass", "Steamcraft:hoeGildedGold", "Railcraft:tool.steel.hoe", - "TConstruct:mattock" + "TConstruct:mattock", + "appliedenergistics2:item.ToolCertusQuartzHoe", "appliedenergistics2:item.ToolNetherQuartzHoe", + "ProjRed|Exploration:projectred.exploration.hoeruby", "ProjRed|Exploration:projectred.exploration.hoesapphire", "ProjRed|Exploration:projectred.exploration.hoeperidot" }; public static List farmHoes = new ArrayList(); From 8cd9fe3e07112535850ffc0bdccaab0302ee6413 Mon Sep 17 00:00:00 2001 From: Matthias Mann Date: Fri, 2 Jan 2015 13:09:54 +0100 Subject: [PATCH 36/95] added more ExNihilo recipes for the SAG Mill --- .../enderio/config/SAGMillRecipes_Core.xml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/resources/assets/enderio/config/SAGMillRecipes_Core.xml b/resources/assets/enderio/config/SAGMillRecipes_Core.xml index 12610e97..8c4eea6c 100644 --- a/resources/assets/enderio/config/SAGMillRecipes_Core.xml +++ b/resources/assets/enderio/config/SAGMillRecipes_Core.xml @@ -2346,6 +2346,77 @@ addOreDictionaryTooltips=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From b2e3155fc69431e0773cae490c894f6187c799fe Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Fri, 2 Jan 2015 13:59:50 -0500 Subject: [PATCH 37/95] Fix disabled IO mode not being accessible on cap banks for generators --- .../crazypants/enderio/machine/capbank/TileCapBank.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/crazypants/enderio/machine/capbank/TileCapBank.java b/src/main/java/crazypants/enderio/machine/capbank/TileCapBank.java index 3060d706..8346710f 100644 --- a/src/main/java/crazypants/enderio/machine/capbank/TileCapBank.java +++ b/src/main/java/crazypants/enderio/machine/capbank/TileCapBank.java @@ -268,6 +268,7 @@ public class TileCapBank extends TileEntityEio implements IInternalPowerHandler, } faceModes.put(faceHit, mode); if(updateReceptors) { + validateModeForReceptor(faceHit); receptorsDirty = true; } if(worldObj != null) { @@ -501,6 +502,10 @@ public class TileCapBank extends TileEntityEio implements IInternalPowerHandler, return new EnergyReceptor(this, pi, dir); } + private void validateModeForReceptor(ForgeDirection dir) { + validateModeForReceptor(getEnergyReceptorForFace(dir)); + } + private void validateModeForReceptor(EnergyReceptor er) { IoMode ioMode = getIoMode(er.getDir()); if((ioMode == IoMode.PUSH_PULL || ioMode == IoMode.NONE) && er.getConduit() == null) { @@ -513,9 +518,8 @@ public class TileCapBank extends TileEntityEio implements IInternalPowerHandler, if(ioMode == IoMode.PULL && er.getReceptor().isInputOnly()) { setIoMode(er.getDir(), IoMode.PUSH, false); } else if(ioMode == IoMode.PUSH && er.getReceptor().isOutputOnly()) { - setIoMode(er.getDir(), IoMode.PULL, false); + setIoMode(er.getDir(), IoMode.DISABLED, false); } - } @Override From f7ff5e6328eca94ee4daf2f5685e102898fe5443 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Fri, 2 Jan 2015 14:01:12 -0500 Subject: [PATCH 38/95] Fix conduits breaking near instantly with picks --- .../java/crazypants/enderio/conduit/BlockConduitBundle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/crazypants/enderio/conduit/BlockConduitBundle.java b/src/main/java/crazypants/enderio/conduit/BlockConduitBundle.java index 1bfe6dbd..116c25b3 100644 --- a/src/main/java/crazypants/enderio/conduit/BlockConduitBundle.java +++ b/src/main/java/crazypants/enderio/conduit/BlockConduitBundle.java @@ -308,7 +308,7 @@ public class BlockConduitBundle extends BlockEio implements IGuiHandler, IFacade @SubscribeEvent public void onBreakSpeed(BreakSpeed event) { - if (event.block == this) { + if (event.block == this && event.entityPlayer.getCurrentEquippedItem() == null) { event.newSpeed *= 3; } } From 240a3ae9ab907ffc12c3e78b9e17afac644aedc1 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Fri, 2 Jan 2015 16:22:55 -0500 Subject: [PATCH 39/95] Help for #1559, add important warning to all core XML files --- .../assets/enderio/config/AlloySmelterRecipes_Core.xml | 5 +++++ .../assets/enderio/config/EnchanterRecipes_Core.xml | 6 ++++++ .../enderio/config/OreDictionaryPreferences_Core.xml | 6 ++++++ .../assets/enderio/config/PainterPaintSources_Core.xml | 2 +- .../assets/enderio/config/PoweredSpawnerConfig_Core.json | 2 +- .../assets/enderio/config/SliceAndSpliceRecipes_Core.xml | 9 +++++++++ resources/assets/enderio/config/VatRecipes_Core.xml | 6 ++++++ 7 files changed, 34 insertions(+), 2 deletions(-) diff --git a/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml b/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml index 5c4d0ffa..50e98ef0 100644 --- a/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml +++ b/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml @@ -1,5 +1,10 @@ + diff --git a/resources/assets/enderio/config/VatRecipes_Core.xml b/resources/assets/enderio/config/VatRecipes_Core.xml index bfcfcd2d..b4f61cbe 100644 --- a/resources/assets/enderio/config/VatRecipes_Core.xml +++ b/resources/assets/enderio/config/VatRecipes_Core.xml @@ -1,4 +1,10 @@